java.lang
Class ReaderInputStream
java.lang.Object
java.io.InputStream
java.lang.ReaderInputStream
- All Implemented Interfaces:
- Closeable
class ReaderInputStream
- extends InputStream
|
Method Summary |
int |
read()
Reads a single byte from this InputStream and returns the result as an
int. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderInputStream
public ReaderInputStream(Reader reader)
read
public int read()
throws IOException
- Description copied from class:
InputStream
- Reads a single byte from this InputStream and returns the result as an
int. The low-order byte is returned or -1 of the end of stream was
encountered. This abstract implementation must be provided by concrete
subclasses.
- Specified by:
read in class InputStream
- Returns:
- the byte read or -1 if end of stream.
- Throws:
IOException - If the stream is already closed or another IOException
occurs.
Please submit a feedback, bug or feature