com.ibm.ws.serialization

Interface SerializationContext


  1. public interface SerializationContext
A context for serializing objects.

Method Summary

Modifier and Type Method and Description
  1. void
addObjectReplacer(SerializationObjectReplacer replacer)
Add an object replacer local to this context only.
  1. java.io.ObjectOutputStream
createObjectOutputStream(java.io.OutputStream output)
Create a stream for serializing objects using this context.

Method Detail

addObjectReplacer

  1. void addObjectReplacer(SerializationObjectReplacer replacer)
Add an object replacer local to this context only.

createObjectOutputStream

  1. java.io.ObjectOutputStream createObjectOutputStream( java.io.OutputStream output)
  2. throws java.io.IOException
Create a stream for serializing objects using this context.
Parameters:
output - the output stream to write serialized object data
Returns:
a stream for serialization
Throws:
java.io.IOException - if the ObjectOutputStream constructor throws an exception