D - a datum classpublic interface MessageEncoder<D>
| Modifier and Type | Method and Description | 
|---|---|
| ByteBuffer | encode(D datum)Serialize a single datum to a ByteBuffer. | 
| void | encode(D datum,
      OutputStream stream)Serialize a single datum to an OutputStream. | 
ByteBuffer encode(D datum) throws IOException
datum - a datumIOExceptionvoid encode(D datum, OutputStream stream) throws IOException
datum - a datumstream - an OutputStream to serialize the datum toIOExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.