Interface SerializationContext


public interface SerializationContext
A context for serializing objects.
  • Method Details

    • addObjectReplacer

      void addObjectReplacer(SerializationObjectReplacer replacer)
      Add an object replacer local to this context only.
      Parameters:
      resolver - the resolver to add
    • createObjectOutputStream

      ObjectOutputStream createObjectOutputStream(OutputStream output) throws 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:
      IOException - if the ObjectOutputStream constructor throws an exception