Interface Encoding.Deserializer<T>

Enclosing interface:
Encoding

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

    Modifier and Type
    Method
    Description
    Reads a serialized type-T object representation from the given input stream and returns the corresponding object.
  • Method Details

    • deserialize

      T deserialize(InputStream input) throws IOException
      Reads a serialized type-T object representation from the given input stream and returns the corresponding object. Implementations should read the entire input stream and must close it (unless they return the raw InputStream, e.g. for a binary response type).

      Format-related deserialization errors surface as IllegalArgumentException. Inputs and outputs must never be null.

      Throws:
      IOException