| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | MessageDecoder.BaseDecoder<
a datum class D>Base class for |
| Modifier and Type | Method and Description |
|---|---|
| public D | Returns: a datum read from the streamstream to read from stream)Deserialize a single datum from an InputStream. |
| public D | Returns: a datum read from the streamstream to read from stream, D a datum instance to reuse, avoiding instantiation if possible reuse)Deserialize a single datum from an InputStream. |
| public D | Returns: a datum read from the streama ByteBuffer containing an encoded datum encoded)Deserialize a single datum from a ByteBuffer. |
| public D | Returns: a datum read from the streama ByteBuffer containing an encoded datum encoded, D a datum instance to reuse, avoiding instantiation if possible reuse)Deserialize a single datum from a ByteBuffer. |
| public D | Returns: a datum read from the streama byte array containing an encoded datum encoded)Deserialize a single datum from a byte array. |
| public D | Returns: a datum read from the streama byte array containing an encoded datum encoded, D a datum instance to reuse, avoiding instantiation if possible reuse)Deserialize a single datum from a byte array. |
| decode | back to summary |
|---|---|
| public D decode(InputStream stream) throws IOException Deserialize a single datum from an InputStream.
| |
| decode | back to summary |
|---|---|
| public D decode(InputStream stream, D reuse) throws IOException Deserialize a single datum from an InputStream.
| |
| decode | back to summary |
|---|---|
| public D decode(ByteBuffer encoded) throws IOException Deserialize a single datum from a ByteBuffer.
| |
| decode | back to summary |
|---|---|
| public D decode(ByteBuffer encoded, D reuse) throws IOException Deserialize a single datum from a ByteBuffer.
| |
| decode | back to summary |
|---|---|
| public D decode(byte[] encoded) throws IOException Deserialize a single datum from a byte array.
| |
| decode | back to summary |
|---|---|
| public D decode(byte[] encoded, D reuse) throws IOException Deserialize a single datum from a byte array.
| |
MessageEncoder implementations that provides default
implementations for most of the DatumEncoder API.
Implementations provided by this base class are thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal | |
| private static final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public D | decode(InputStream
stream to read from stream)Implements org. |
| public D | decode(ByteBuffer
a ByteBuffer containing an encoded datum encoded)Implements org. |
| public D | decode(byte[]
a byte array containing an encoded datum encoded)Implements org. |
| public D | decode(ByteBuffer
a ByteBuffer containing an encoded datum encoded, D a datum instance to reuse, avoiding instantiation if possible reuse)Implements org. |
| public D | decode(byte[]
a byte array containing an encoded datum encoded, D a datum instance to reuse, avoiding instantiation if possible reuse)Implements org. |
| BYTE_ARRAY_IN | back to summary |
|---|---|
| private static final ThreadLocal<ReusableByteArrayInputStream> BYTE_ARRAY_IN | |
| BYTE_BUFFER_IN | back to summary |
|---|---|
| private static final ThreadLocal<ReusableByteBufferInputStream> BYTE_BUFFER_IN | |
| BaseDecoder | back to summary |
|---|---|
| public BaseDecoder() | |
| decode | back to summary |
|---|---|
| public D decode(InputStream stream) throws IOException Implements org. Doc from org. Deserialize a single datum from an InputStream.
| |
| decode | back to summary |
|---|---|
| public D decode(ByteBuffer encoded) throws IOException Implements org. Doc from org. Deserialize a single datum from a ByteBuffer.
| |
| decode | back to summary |
|---|---|
| public D decode(byte[] encoded) throws IOException Implements org. Doc from org. Deserialize a single datum from a byte array.
| |
| decode | back to summary |
|---|---|
| public D decode(ByteBuffer encoded, D reuse) throws IOException Implements org. Doc from org. Deserialize a single datum from a ByteBuffer.
| |
| decode | back to summary |
|---|---|
| public D decode(byte[] encoded, D reuse) throws IOException Implements org. Doc from org. Deserialize a single datum from a byte array.
| |