T - the type of the object this encoder can encode.public static interface Encoder.BinaryStream<T> extends Encoder
Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T>| Modifier and Type | Method and Description |
|---|---|
void |
encode(T object,
java.io.OutputStream os)
Encode the given object into a binary stream written to the
implementation provided OutputStream.
|
void encode(T object, java.io.OutputStream os) throws EncodeException, java.io.IOException
object - the object being encoded.os - the output stream where the encoded data is written.EncodeExceptionjava.io.IOExceptionCopyright © 2012–2022 Oracle Corporation. All rights reserved.