Package com.ibm.ws.serialization
Interface DeserializationContext
-
public interface DeserializationContextA context for deserializing objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddObjectResolver(DeserializationObjectResolver resolver)Add an object resolver local to this context only.java.io.ObjectInputStreamcreateObjectInputStream(java.io.InputStream input, java.lang.ClassLoader classLoader)Create a stream for deserializing objects using this context.
-
-
-
Method Detail
-
addObjectResolver
void addObjectResolver(DeserializationObjectResolver resolver)
Add an object resolver local to this context only.- Parameters:
resolver- the resolver to add
-
createObjectInputStream
java.io.ObjectInputStream createObjectInputStream(java.io.InputStream input, java.lang.ClassLoader classLoader) throws java.io.IOExceptionCreate a stream for deserializing objects using this context. When deserializing application objects, the specified class loader is typically the thread context class loader.- Parameters:
input- the input stream containing serialized object dataclassLoader- the class loader for resolving classes- Returns:
- a stream for deserialization
- Throws:
java.io.IOException- if theObjectInputStreamconstructor throws an exception
-
-