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.EncodeException
- The provided object could not be encoded to an output streamjava.io.IOException
- If an error occurred writing to the output stream