Interface Encoding.Serializer<T>

Enclosing interface:
Encoding

public static interface Encoding.Serializer<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(T value, OutputStream output)
    Serializes the given object and writes the serialized representation to the given output stream.
  • Method Details

    • serialize

      void serialize(T value, OutputStream output) throws IOException
      Serializes the given object and writes the serialized representation to the given output stream. Implementations must not close the stream. Inputs must never be null.
      Throws:
      IOException