public class IOInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private static CallSite |
closeAdapter |
private java.io.InputStream |
in |
private IRubyObject |
io |
private IRubyObject |
numOne |
private static CallSite |
readAdapter |
| Constructor and Description |
|---|
IOInputStream(IRubyObject io)
Creates a new InputStream with the object provided.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
private final IRubyObject io
private final java.io.InputStream in
private final IRubyObject numOne
private static final CallSite readAdapter
private static final CallSite closeAdapter
public IOInputStream(IRubyObject io)
io - the ruby objectpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException