Example usage for org.springframework.core ConfigurableObjectInputStream readObject

List of usage examples for org.springframework.core ConfigurableObjectInputStream readObject

Introduction

In this page you can find the example usage for org.springframework.core ConfigurableObjectInputStream readObject.

Prototype

public final Object readObject() throws IOException, ClassNotFoundException 

Source Link

Document

Read an object from the ObjectInputStream.

Usage

From source file:pl.edu.spring.tcp.CustomSerializerDeserializer.java

public Object deserialize(InputStream inputStream) throws IOException {
    ConfigurableObjectInputStream objectInputStream = new ConfigurableObjectInputStream(inputStream,
            this.classLoader);
    try {//from w w  w .  j  a  v  a  2  s. c om
        return objectInputStream.readObject();
    } catch (ClassNotFoundException var4) {
        throw new NestedIOException("Failed to deserialize object type", var4);
    }
}