public interface Deserializer<T>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(InputStream inputStream)
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 streamIOException - in case of errors reading from the stream