| Modifier and Type | Field and Description |
|---|---|
| private long | currentAddress
If the current ByteBuffer is unsafe-direct based, currentAddress is the start address of this ByteBuffer; otherwise should be zero. |
| private byte[] | currentArray
If the current ByteBuffer is unsafe-direct based, currentArray is null; otherwise should be the array inside ByteBuffer. |
| private int | currentArrayOffset
Current ByteBuffer's array offset |
| private ByteBuffer | currentByteBuffer
The current ByteBuffer; |
| private int | currentByteBufferPos
The current position for current ByteBuffer |
| private int | currentIndex
Current If index equals dataSize, then all the data in the InputStream has been consumed |
| private int | dataSize
The number of ByteBuffers in the input data. |
| private boolean | hasArray
Whether current ByteBuffer has an array |
| private Iterator | iterator
The |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public int | read()
Implements abstract java. |
| public int | read(byte[]
the buffer into which the data is read. output, int the start offset in array offset, int b
at which the data is written.the maximum number of bytes to read. length)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| private void |
| currentAddress | back to summary |
|---|---|
| private long currentAddress If the current ByteBuffer is unsafe-direct based, currentAddress is the start address of this ByteBuffer; otherwise should be zero. | |
| currentArray | back to summary |
|---|---|
| private byte[] currentArray If the current ByteBuffer is unsafe-direct based, currentArray is null; otherwise should be the array inside ByteBuffer. | |
| currentArrayOffset | back to summary |
|---|---|
| private int currentArrayOffset Current ByteBuffer's array offset | |
| currentByteBuffer | back to summary |
|---|---|
| private ByteBuffer currentByteBuffer The current ByteBuffer; | |
| currentByteBufferPos | back to summary |
|---|---|
| private int currentByteBufferPos The current position for current ByteBuffer | |
| currentIndex | back to summary |
|---|---|
| private int currentIndex Current If index equals dataSize, then all the data in the InputStream has been consumed | |
| dataSize | back to summary |
|---|---|
| private int dataSize The number of ByteBuffers in the input data. | |
| hasArray | back to summary |
|---|---|
| private boolean hasArray Whether current ByteBuffer has an array | |
| iterator | back to summary |
|---|---|
| private Iterator<ByteBuffer> iterator The | |
| IterableByteBufferInputStream | back to summary |
|---|---|
| pack-priv IterableByteBufferInputStream(Iterable<ByteBuffer> data) | |
| getNextByteBuffer | back to summary |
|---|---|
| private boolean getNextByteBuffer() | |
| 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[] output, int offset, int length) 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
| |
| updateCurrentByteBufferPos | back to summary |
|---|---|
| private void updateCurrentByteBufferPos(int numberOfBytesRead) | |