public class IOInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
IOInputStream(IRubyObject io)
Creates a new InputStream with the object provided.
|
IOInputStream(IRubyObject io,
boolean verifyCanRead) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
public IOInputStream(IRubyObject io)
io - the ruby objectpublic IOInputStream(IRubyObject io, boolean verifyCanRead)
public 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.IOExceptionCopyright © 2001-2021 JRuby. All Rights Reserved.