BinaryDecoder.
This implementation will not read-ahead from the provided InputStream beyond the minimum required to service the API requests.
Encoder
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private DirectBinaryDecoder. | |
| private InputStream |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv DirectBinaryDecoder | |
| protected void | doReadBytes(byte[] bytes, int start, int length)
Overrides org. |
| protected void | |
| public InputStream | inputStream()
Overrides org. java. that is aware of any buffering that
may occur in this BinaryDecoder.
|
| public boolean | isEnd()
Overrides org. |
| public boolean | readBoolean()
Overrides org. Encoder#writeBoolean.
|
| public ByteBuffer | readBytes(ByteBuffer old)
Overrides org. Encoder#writeBytes.
|
| public double | readDouble()
Overrides org. Encoder#writeDouble.
|
| public float | readFloat()
Overrides org. Encoder#writeFloat.
|
| public int | readInt()
Overrides org. Encoder#writeInt.
|
| public long | readLong()
Overrides org. Encoder#writeLong.
|
| buf | back to summary |
|---|---|
| private final byte[] buf | |
| byteReader | back to summary |
|---|---|
| private DirectBinaryDecoder. | |
| in | back to summary |
|---|---|
| private InputStream in | |
| DirectBinaryDecoder | back to summary |
|---|---|
| pack-priv DirectBinaryDecoder(InputStream in) | |
| configure | back to summary |
|---|---|
| pack-priv DirectBinaryDecoder configure(InputStream in) | |
| doReadBytes | back to summary |
|---|---|
| protected void doReadBytes(byte[] bytes, int start, int length) throws IOException Overrides org. Doc from org. Reads length bytes into bytes starting at start.
| |
| doSkipBytes | back to summary |
|---|---|
| protected void doSkipBytes(long length) throws IOException Overrides org.
| |
| inputStream | back to summary |
|---|---|
| public InputStream inputStream() Overrides org. Doc from org. Returns an
| |
| isEnd | back to summary |
|---|---|
| public boolean isEnd() throws IOException Overrides org. Doc from org. Returns true if the current BinaryDecoder is at the end of its source data and cannot read any further without throwing an EOFException or other IOException.
Not all implementations of BinaryDecoder support isEnd(). Implementations
that do not support isEnd() will throw a
| |
| readBoolean | back to summary |
|---|---|
| public boolean readBoolean() throws IOException Overrides org. Doc from org. Reads a boolean value written by
| |
| readBytes | back to summary |
|---|---|
| public ByteBuffer readBytes(ByteBuffer old) throws IOException Overrides org. Doc from org. Reads a byte-string written by
| |
| readDouble | back to summary |
|---|---|
| public double readDouble() throws IOException Overrides org. Doc from org. Reads a double written by
| |
| readFloat | back to summary |
|---|---|
| public float readFloat() throws IOException Overrides org. Doc from org. Reads a float written by
| |
| readInt | back to summary |
|---|---|
| public int readInt() throws IOException Overrides org. Doc from org. Reads an integer written by
| |
| readLong | back to summary |
|---|---|
| public long readLong() throws IOException Overrides org. Doc from org. Reads a long written by
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer |
| ByteReader | back to summary |
|---|---|
| private ByteReader() | |
| read | back to summary |
|---|---|
| public ByteBuffer read(ByteBuffer old, int length) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufferInputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer |
| bbi | back to summary |
|---|---|
| private final ByteBufferInputStream bbi | |
| ReuseByteReader | back to summary |
|---|---|
| public ReuseByteReader(ByteBufferInputStream bbi) | |
| read | back to summary |
|---|---|
| public ByteBuffer read(ByteBuffer old, int length) throws IOException Overrides org.
| |