com.ibm.ws.serialization

Interface DeserializationContext


  1. public interface DeserializationContext
A context for deserializing objects.

Method Summary

Modifier and Type Method and Description
  1. void
addObjectResolver(DeserializationObjectResolver resolver)
Add an object resolver local to this context only.
  1. java.io.ObjectInputStream
createObjectInputStream(java.io.InputStream input,java.lang.ClassLoader classLoader)
Create a stream for deserializing objects using this context.

Method Detail

addObjectResolver

  1. void addObjectResolver(DeserializationObjectResolver resolver)
Add an object resolver local to this context only.
Parameters:
resolver - the resolver to add

createObjectInputStream

  1. java.io.ObjectInputStream createObjectInputStream( java.io.InputStream input,
  2. java.lang.ClassLoader classLoader)
  3. throws java.io.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 data
classLoader - the class loader for resolving classes
Returns:
a stream for deserialization
Throws:
java.io.IOException - if the ObjectInputStream constructor throws an exception