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 datumIOException
void encode(D datum, OutputStream stream) throws IOException
datum
- a datumstream
- an OutputStream to serialize the datum toIOException
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.