| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static NonBlockingInputStream | |
| public static NonBlockingReader | |
| public static NonBlockingReader | |
| public static NonBlockingPumpInputStream | |
| public static NonBlockingPumpInputStream | |
| public static NonBlockingPumpReader | |
| public static NonBlockingPumpReader | |
| public static NonBlockingInputStream |
| NonBlocking | back to summary |
|---|---|
| public NonBlocking() | |
| nonBlocking | back to summary |
|---|---|
| public static NonBlockingInputStream nonBlocking(String name, InputStream inputStream) | |
| nonBlocking | back to summary |
|---|---|
| public static NonBlockingReader nonBlocking(String name, Reader reader) | |
| nonBlocking | back to summary |
|---|---|
| public static NonBlockingReader nonBlocking(String name, InputStream inputStream, Charset encoding) | |
| nonBlockingPumpInputStream | back to summary |
|---|---|
| public static NonBlockingPumpInputStream nonBlockingPumpInputStream() | |
| nonBlockingPumpInputStream | back to summary |
|---|---|
| public static NonBlockingPumpInputStream nonBlockingPumpInputStream(int size) | |
| nonBlockingPumpReader | back to summary |
|---|---|
| public static NonBlockingPumpReader nonBlockingPumpReader() | |
| nonBlockingPumpReader | back to summary |
|---|---|
| public static NonBlockingPumpReader nonBlockingPumpReader(int size) | |
| nonBlockingStream | back to summary |
|---|---|
| public static NonBlockingInputStream nonBlockingStream(NonBlockingReader reader, Charset encoding) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private final CharBuffer | |
| private final CharsetDecoder | |
| private final NonBlockingInputStream |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. Closes the stream and releases any system resources associated with it. |
| protected int | read(long timeout, boolean isPeek)
Implements abstract jdk. Attempts to read a character from the input stream for a specific period of time. |
| public int | readBuffered(char[] b, int off, int len, long timeout)
Implements abstract jdk.
|
| public void | shutdown()
Overrides jdk. Shuts down the thread that is handling blocking I/O. |
| bytes | back to summary |
|---|---|
| private final ByteBuffer bytes | |
| chars | back to summary |
|---|---|
| private final CharBuffer chars | |
| decoder | back to summary |
|---|---|
| private final CharsetDecoder decoder | |
| input | back to summary |
|---|---|
| private final NonBlockingInputStream input | |
| NonBlockingInputStreamReader | back to summary |
|---|---|
| public NonBlockingInputStreamReader(NonBlockingInputStream inputStream, Charset encoding) | |
| NonBlockingInputStreamReader | back to summary |
|---|---|
| public NonBlockingInputStreamReader(NonBlockingInputStream input, CharsetDecoder decoder) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Doc from java. Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), ready(), mark(), reset(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect.
| |
| read | back to summary |
|---|---|
| protected int read(long timeout, boolean isPeek) throws IOException Implements abstract jdk. Doc from jdk. Attempts to read a character from the input stream for a specific period of time.
| |
| readBuffered | back to summary |
|---|---|
| public int readBuffered(char[] b, int off, int len, long timeout) throws IOException Implements abstract jdk.
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Overrides jdk. Doc from jdk. Shuts down the thread that is handling blocking I/O. Note that if the thread is currently blocked waiting for I/O it will not actually shut down until the I/O is received.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private final CharBuffer | |
| private final CharsetEncoder | |
| private final NonBlockingReader |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. |
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| public int | read(long timeout, boolean isPeek)
Implements abstract jdk.
|
| bytes | back to summary |
|---|---|
| private final ByteBuffer bytes | |
| chars | back to summary |
|---|---|
| private final CharBuffer chars | |
| encoder | back to summary |
|---|---|
| private final CharsetEncoder encoder | |
| reader | back to summary |
|---|---|
| private final NonBlockingReader reader | |
| NonBlockingReaderInputStream | back to summary |
|---|---|
| private NonBlockingReaderInputStream(NonBlockingReader reader, Charset charset) | |
| available | back to summary |
|---|---|
| public int available() Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| read | back to summary |
|---|---|
| public int read(long timeout, boolean isPeek) throws IOException Implements abstract jdk.
| |