public class DefaultDeserializer extends Object implements Deserializer<Object>
Deserializer
implementation that reads an input stream
using Java serialization.Constructor and Description |
---|
DefaultDeserializer() |
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(InputStream inputStream)
Reads the input stream and deserializes into an object.
|
public Object deserialize(InputStream inputStream) throws IOException
deserialize
in interface Deserializer<Object>
inputStream
- the input streamIOException
- in case of errors reading from the streamObjectInputStream.readObject()