D - a datum classpublic interface MessageDecoder<D>
| Modifier and Type | Interface and Description | 
|---|---|
| static class  | MessageDecoder.BaseDecoder<D>Base class for  MessageEncoderimplementations that provides default
 implementations for most of theDatumEncoderAPI. | 
| 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.IOExceptionD 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.IOExceptionD 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.IOExceptionD 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.IOExceptionD 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.IOExceptionD 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.IOExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.