NIOInputStream implementation based on InputBuffer.
| Modifier and Type | Field and Description |
|---|---|
| private volatile InputBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| 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 Buffer | getBuffer()
Implements org.
Returns the the duplicate of the underlying |
| private boolean | |
| public boolean | |
| public boolean | |
| public void | mark(int readlimit)
Overrides java. Marks the current position in this input stream. |
| public boolean | Returns: trueOverrides java. This |
| public void | notifyAvailable(ReadHandler handler)
Implements org.
Notify the specified |
| public void | notifyAvailable(ReadHandler handler, int size)
Implements org.
Notify the specified |
| public int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| public int | read(byte[] b)
Overrides java. Reads some number of bytes from the input stream and stores them into
the buffer array |
| public int | read(byte[] b, int off, int len)
Overrides java. Reads up to |
| public Buffer | readBuffer()
Implements org.
Returns the underlying |
| public Buffer | readBuffer(final int size)
Implements org.
Returns the |
| public int | |
| public void | |
| public void | reset()
Overrides java. Repositions this stream to the position at the time the
|
| public void | |
| public long | skip(long n)
Overrides java. Skips over and discards |
| inputBuffer | back to summary |
|---|---|
| private volatile InputBuffer inputBuffer | |
| NIOInputStreamImpl | back to summary |
|---|---|
| pack-priv NIOInputStreamImpl() | |
| available | back to summary |
|---|---|
| public int available() throws IOException 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.
| |
| getBuffer | back to summary |
|---|---|
| public Buffer getBuffer() Implements org. Doc from org.
Returns the the duplicate of the underlying
| |
| initialized | back to summary |
|---|---|
| private boolean initialized() | |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Implements org.
| |
| isReady | back to summary |
|---|---|
| public boolean isReady() Implements org.
| |
| mark | back to summary |
|---|---|
| public void mark(int readlimit) Overrides java. Doc from java. Marks the current position in this input stream. A subsequent call to
the The The general contract of Marking a closed stream should not have any effect on the stream.
| |
| markSupported | back to summary |
|---|---|
| public boolean markSupported() Overrides java. This
| |
| notifyAvailable | back to summary |
|---|---|
| public void notifyAvailable(ReadHandler handler) Implements org. Doc from org.
Notify the specified Invoking this method is equivalent to calling: notifyAvailable(handler, 1).
| |
| notifyAvailable | back to summary |
|---|---|
| public void notifyAvailable(ReadHandler handler, int size) Implements org. Doc from org.
Notify the specified
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from 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(byte[] b) throws IOException Overrides java. Doc from java. Reads some number of bytes from the input stream and stores them into
the buffer array If the length of The first byte read is stored into element
| |
| 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
| |
| readBuffer | back to summary |
|---|---|
| public Buffer readBuffer() Implements org. Doc from org.
Returns the underlying
| |
| readBuffer | back to summary |
|---|---|
| public Buffer readBuffer(final int size) Implements org. Doc from org.
Returns the
| |
| readyData | back to summary |
|---|---|
| public int readyData() Implements org.
| |
| recycle | back to summary |
|---|---|
| public void recycle() Implements org.
| |
| reset | back to summary |
|---|---|
| public void reset() throws IOException Overrides java. Doc from java. Repositions this stream to the position at the time the
The general contract of
| |
| setInputBuffer | back to summary |
|---|---|
| public void setInputBuffer(final InputBuffer inputBuffer) | |
| skip | back to summary |
|---|---|
| public long skip(long n) throws IOException Overrides java. Doc from java. Skips over and discards
| |