| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Implements org. |
| public void | close()
Implements java. |
| public int | read()
Implements org. |
| public int | read(byte[]
the destination array array)Implements org. |
| public int | read(byte[]
the destination array dst, int the offset into the array into which data should be read dstIndex, int the number of bytes to attempt to fill in the destination array length)Implements org. |
| public long | skip(long
the number of bytes to attempt to skip bytes)Implements org. n bytes of data from this input stream.
|
| buffer | back to summary |
|---|---|
| private final ByteBuf buffer | |
| ChannelBufferByteInput | back to summary |
|---|---|
| pack-priv ChannelBufferByteInput(ByteBuf buffer) | |
| available | back to summary |
|---|---|
| public int available() throws IOException Implements org. Doc from org. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements org. Doc from org. Reads the next byte of data from the input stream. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.
| |
| read | back to summary |
|---|---|
| public int read(byte[] array) throws IOException Implements org. Doc from org. Read some bytes from the input stream into the given array. Returns the number of bytes actually read (possibly zero), or -1 if the end of stream has been reached.
| |
| read | back to summary |
|---|---|
| public int read(byte[] dst, int dstIndex, int length) throws IOException Implements org. Doc from org. Read some bytes from the input stream into the given array. Returns the number of bytes actually read (possibly zero), or -1 if the end of stream has been reached.
| |
| skip | back to summary |
|---|---|
| public long skip(long bytes) throws IOException Implements org. Doc from org. Skips over and discards up to
| |