D
- a datum classpublic interface MessageDecoder<D>
Modifier and Type | Interface and Description |
---|---|
static class |
MessageDecoder.BaseDecoder<D>
Base class for
MessageEncoder implementations that provides default
implementations for most of the DatumEncoder API. |
Modifier and Type | Method and Description |
---|---|
D |
decode(byte[] encoded)
Deserialize a single datum from a byte array.
|
D |
decode(byte[] encoded,
D reuse)
Deserialize a single datum from a byte array.
|
D |
decode(ByteBuffer encoded)
Deserialize a single datum from a ByteBuffer.
|
D |
decode(ByteBuffer encoded,
D reuse)
Deserialize a single datum from a ByteBuffer.
|
D |
decode(InputStream stream)
Deserialize a single datum from an InputStream.
|
D |
decode(InputStream stream,
D reuse)
Deserialize a single datum from an InputStream.
|
D decode(InputStream stream) throws IOException
stream
- stream to read fromBadHeaderException
- If the payload's header is not recognized.MissingSchemaException
- If the payload's schema cannot be found.IOException
D decode(InputStream stream, D reuse) throws IOException
stream
- stream to read fromreuse
- a datum instance to reuse, avoiding instantiation if possibleBadHeaderException
- If the payload's header is not recognized.MissingSchemaException
- If the payload's schema cannot be found.IOException
D decode(ByteBuffer encoded) throws IOException
encoded
- a ByteBuffer containing an encoded datumBadHeaderException
- If the payload's header is not recognized.MissingSchemaException
- If the payload's schema cannot be found.IOException
D decode(ByteBuffer encoded, D reuse) throws IOException
encoded
- a ByteBuffer containing an encoded datumreuse
- a datum instance to reuse, avoiding instantiation if possibleBadHeaderException
- If the payload's header is not recognized.MissingSchemaException
- If the payload's schema cannot be found.IOException
D decode(byte[] encoded) throws IOException
encoded
- a byte array containing an encoded datumBadHeaderException
- If the payload's header is not recognized.MissingSchemaException
- If the payload's schema cannot be found.IOException
D decode(byte[] encoded, D reuse) throws IOException
encoded
- a byte array containing an encoded datumreuse
- a datum instance to reuse, avoiding instantiation if possibleBadHeaderException
- If the payload's header is not recognized.MissingSchemaException
- If the payload's schema cannot be found.IOException
Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.