List of usage examples for org.springframework.core ConfigurableObjectInputStream ConfigurableObjectInputStream
public ConfigurableObjectInputStream(InputStream in, @Nullable ClassLoader classLoader) throws IOException
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); } }