ByteBuffer data as an InputStream.
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private ByteBuffer | |
| public int | read()
Implements abstract java. |
| public int | read(byte[]
the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| public ByteBuffer |
| buffers | back to summary |
|---|---|
| private List<ByteBuffer> buffers | |
| current | back to summary |
|---|---|
| private int current | |
| ByteBufferInputStream | back to summary |
|---|---|
| public ByteBufferInputStream(List<ByteBuffer> buffers) | |
| getBuffer | back to summary |
|---|---|
| private ByteBuffer getBuffer() throws IOException Returns the next non-empty buffer. | |
| 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, 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 ByteBuffer readBuffer(int length) throws IOException Read a buffer from the input without copying, if possible. | |