Example usage for org.springframework.core ConfigurableObjectInputStream ConfigurableObjectInputStream

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

Introduction

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

Prototype

public ConfigurableObjectInputStream(InputStream in, @Nullable ClassLoader classLoader) throws IOException 

Source Link

Document

Create a new ConfigurableObjectInputStream for the given InputStream and ClassLoader.

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   ww  w . ja  v a  2 s . co m*/
        return objectInputStream.readObject();
    } catch (ClassNotFoundException var4) {
        throw new NestedIOException("Failed to deserialize object type", var4);
    }
}