List of usage examples for org.springframework.core ConfigurableObjectInputStream readObject
public final Object readObject() throws IOException, ClassNotFoundException
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); } }