Interface Encoder.BinaryStream<T>

  • Type Parameters:
    T - the type of the object this encoder can encode.
    All Superinterfaces:
    Enclosing interface:

    public static interface Encoder.BinaryStream<T>
    extends Encoder
    This interface may be implemented by encoding algorithms that want to write the encoded object to a binary stream.
    • Method Detail

      • encode

        void encode​(T object,
                    OutputStream os)
             throws EncodeException,
        Encode the given object into a binary stream written to the implementation provided OutputStream.
        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 stream
        IOException - If an error occurred writing to the output stream