public interface Deserializer<T>
|Modifier and Type||Method and Description|
Read (assemble) an object of type T from the given InputStream.
T deserialize(InputStream inputStream) throws 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 stream
IOException- in case of errors reading from the stream