Package com.ibm.ws.serialization
Interface DeserializationContext
public interface DeserializationContext
A context for deserializing objects.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an object resolver local to this context only.createObjectInputStream(InputStream input, ClassLoader classLoader) Create a stream for deserializing objects using this context.
-
Method Details
-
addObjectResolver
Add an object resolver local to this context only.- Parameters:
resolver- the resolver to add
-
createObjectInputStream
ObjectInputStream createObjectInputStream(InputStream input, ClassLoader classLoader) throws IOException Create 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:
IOException- if theObjectInputStreamconstructor throws an exception
-