public class DefaultDeserializer extends Object implements Deserializer<Object>
Deserializer implementation that reads an input stream
using Java serialization.ObjectInputStream| Constructor and Description |
|---|
DefaultDeserializer()
Create a
DefaultDeserializer with default ObjectInputStream
configuration, using the "latest user-defined ClassLoader". |
DefaultDeserializer(ClassLoader classLoader)
|
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(InputStream inputStream)
Read from the supplied
InputStream and deserialize the contents
into an object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserializeFromByteArraypublic DefaultDeserializer()
DefaultDeserializer with default ObjectInputStream
configuration, using the "latest user-defined ClassLoader".public DefaultDeserializer(@Nullable ClassLoader classLoader)
ConfigurableObjectInputStream(InputStream, ClassLoader)public Object deserialize(InputStream inputStream) throws IOException
InputStream and deserialize the contents
into an object.deserialize in interface Deserializer<Object>inputStream - the input streamIOException - in case of errors reading from the streamObjectInputStream.readObject()