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,
OutputStream os)
Encode the given object into a binary stream written to the
implementation provided OutputStream.
|
void encode(T object, OutputStream os) throws EncodeException, IOException
object
- the object being encoded.os
- the output stream where the encoded data is written.EncodeException
IOException
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.