Interface Deserializer<T>
- All Known Implementing Classes:
DefaultDeserializer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A strategy interface for converting from data in an InputStream to an Object.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(InputStream inputStream) Read (assemble) an object of type T from the given InputStream.
-
Method Details
-
deserialize
Read (assemble) an object of type T from the given InputStream.Note: Implementations should not close the given InputStream (or any decorators of that InputStream) but rather leave this up to the caller.
- Parameters:
inputStream- the input stream- Returns:
- the deserialized object
- Throws:
IOException- in case of errors reading from the streamSerializationFailedException- in case of serialization failed
-