Class DefaultDeserializer
java.lang.Object
org.springframework.core.serializer.DefaultDeserializer
- All Implemented Interfaces:
- Deserializer<Object>
A default 
Deserializer implementation that reads an input stream
 using Java serialization.- Since:
- 3.0.5
- Author:
- Gary Russell, Mark Fisher, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreate aDefaultDeserializerwith defaultObjectInputStreamconfiguration, using the "latest user-defined ClassLoader".DefaultDeserializer(ClassLoader classLoader) 
- 
Method SummaryModifier and TypeMethodDescriptiondeserialize(InputStream inputStream) Read from the suppliedInputStreamand deserialize the contents into an object.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.serializer.DeserializerdeserializeFromByteArray
- 
Constructor Details- 
DefaultDeserializerpublic DefaultDeserializer()Create aDefaultDeserializerwith defaultObjectInputStreamconfiguration, using the "latest user-defined ClassLoader".
- 
DefaultDeserializer- Since:
- 4.2.1
- See Also:
 
 
- 
- 
Method Details- 
deserializeRead from the suppliedInputStreamand deserialize the contents into an object.- Specified by:
- deserializein interface- Deserializer<Object>
- Parameters:
- inputStream- the input stream
- Returns:
- the deserialized object
- Throws:
- IOException- in case of errors reading from the stream
- See Also:
 
 
-