T
- the object type@FunctionalInterface
public interface Deserializer<T>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(java.io.InputStream inputStream)
Read (assemble) an object of type T from the given InputStream.
|
T deserialize(java.io.InputStream inputStream) throws java.io.IOException
Note: Implementations should not close the given InputStream (or any decorators of that InputStream) but rather leave this up to the caller.
inputStream
- the input streamjava.io.IOException
- in case of errors reading from the stream