Spring Framework

org.springframework.core.serializer
Class DefaultDeserializer

java.lang.Object
  extended by org.springframework.core.serializer.DefaultDeserializer
All Implemented Interfaces:
Deserializer<java.lang.Object>

public class DefaultDeserializer
extends java.lang.Object
implements Deserializer<java.lang.Object>

Deserializer that reads an input stream using Java Serialization.

Since:
3.0.5
Author:
Gary Russell, Mark Fisher

Constructor Summary
DefaultDeserializer()
           
 
Method Summary
 java.lang.Object deserialize(java.io.InputStream inputStream)
          Reads the input stream and deserializes into an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDeserializer

public DefaultDeserializer()
Method Detail

deserialize

public java.lang.Object deserialize(java.io.InputStream inputStream)
                             throws java.io.IOException
Reads the input stream and deserializes into an object.

Specified by:
deserialize in interface Deserializer<java.lang.Object>
Parameters:
inputStream - the input stream
Returns:
the deserialized object
Throws:
java.io.IOException - in case of errors reading from the stream

Spring Framework