Class DefaultDeserializer
java.lang.Object
com.networknt.session.jdbc.serializer.DefaultDeserializer
- All Implemented Interfaces:
Deserializer<Object>
A default
Deserializer implementation that reads an input stream
using Java serialization.-
Constructor Summary
ConstructorsConstructorDescriptionCreate aDefaultDeserializerwith defaultObjectInputStreamconfiguration, using the "latest user-defined ClassLoader". -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(InputStream inputStream) Read from the suppliedInputStreamand deserialize the contents into an object.
-
Constructor Details
-
DefaultDeserializer
public DefaultDeserializer()Create aDefaultDeserializerwith defaultObjectInputStreamconfiguration, using the "latest user-defined ClassLoader".
-
-
Method Details
-
deserialize
Read from the suppliedInputStreamand deserialize the contents into an object.- Specified by:
deserializein interfaceDeserializer<Object>- Parameters:
inputStream- the input stream- Returns:
- the deserialized object
- Throws:
IOException- in case of errors reading from the streamSerializationFailedException- in case of serialization failed- See Also:
-