| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: -1 on eof, -2 if the timeout expired with no available input or the character that was read (without consuming it).The amount of time to wait, 0 == forever timeout)Peeks to see if there is a byte waiting in the input stream without actually consuming the byte. |
| public int | Returns: the next byte of data, or-1 if the end of the
stream is reached.Implements abstract java. Reads the next byte of data from the input stream. |
| public int | Returns: The character read, -1 if EOF is reached, or -2 if the read timed out.The amount of time to wait for the character timeout)Attempts to read a character from the input stream for a specific period of time. |
| public int | read(byte[] b, int off, int len)
Overrides java. Reads up to |
| public abstract int | |
| public int | |
| public int | |
| public int | |
| public void |
| EOF | back to summary |
|---|---|
| public static final int EOF | |
| READ_EXPIRED | back to summary |
|---|---|
| public static final int READ_EXPIRED | |
| NonBlockingInputStream | back to summary |
|---|---|
| public NonBlockingInputStream() | |
| peek | back to summary |
|---|---|
| public int peek(long timeout) throws IOException Peeks to see if there is a byte waiting in the input stream without actually consuming the byte.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(long timeout) throws IOException Attempts to read a character from the input stream for a specific period of time.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| read | back to summary |
|---|---|
| public abstract int read(long timeout, boolean isPeek) throws IOException | |
| readBuffered | back to summary |
|---|---|
| public int readBuffered(byte[] b) throws IOException | |
| readBuffered | back to summary |
|---|---|
| public int readBuffered(byte[] b, long timeout) throws IOException | |
| readBuffered | back to summary |
|---|---|
| public int readBuffered(byte[] b, int off, int len, long timeout) throws IOException | |
| shutdown | back to summary |
|---|---|
| public void shutdown() Shuts down the thread that is handling blocking I/O if any. Note that if the thread is currently blocked waiting for I/O it may not actually shut down until the I/O is received. | |