FileDocCategorySizeDatePackage
J2EEObjectStreamFactory.javaAPI DocGlassfish v2 API3377Fri May 04 22:33:12 BST 2007com.sun.ejb.spi.io

J2EEObjectStreamFactory

public interface J2EEObjectStreamFactory
A Factory interface for creating an Object{Input | Output}Stream that allows serialization / de-serialization of "standard" J2EE Objects like EJBLocalObject, JNDIContext, UserTransaction etc.
author
Mahesh Kannan

Fields Summary
Constructors Summary
Methods Summary
public java.io.ObjectInputStreamcreateObjectInputStream(java.io.InputStream is, boolean resolveObject, java.lang.ClassLoader loader)
Obtain an ObjectInputStream that allows de-serialization of a graph of objects.

throws
IOException when the de-serialziation fails
return
an ObjectInputStream that can be used to deserialize objects

public java.io.ObjectOutputStreamcreateObjectOutputStream(java.io.OutputStream os, boolean replaceObject, NonSerializableObjectHandler handler)
Obtain an ObjectOutputStream that allows serialization of a graph of objects. The objects can be plain Serializable objects or can be converted into Serializable objects using the handler

throws
IOException when the serialziation fails
return
an ObjectOutputStream that can be used to serialize objects