Interface Encoding.Deserializer<T>
- Enclosing interface:
Encoding
public static interface Encoding.Deserializer<T>
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(InputStream input) Reads a serialized type-Tobject representation from the given input stream and returns the corresponding object.
-
Method Details
-
deserialize
Reads a serialized type-Tobject 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
-