com.sun.ejb.base.io
Class J2EEObjectStreamFactoryImpl
java.lang.Object
com.sun.ejb.base.io.J2EEObjectStreamFactoryImpl
- All Implemented Interfaces:
- J2EEObjectStreamFactory
public class J2EEObjectStreamFactoryImpl
- extends Object
- implements J2EEObjectStreamFactory
A Factory class for creating EJBObject input/output Stream
- Author:
- Mahesh Kannan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
J2EEObjectStreamFactoryImpl
public J2EEObjectStreamFactoryImpl()
createObjectOutputStream
public ObjectOutputStream createObjectOutputStream(OutputStream os,
boolean replaceObject)
throws IOException
- 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
- Specified by:
createObjectOutputStream in interface J2EEObjectStreamFactory
- Returns:
- an ObjectOutputStream that can be used to serialize objects
- Throws:
IOException - when the serialziation fails
createObjectInputStream
public ObjectInputStream createObjectInputStream(InputStream is,
boolean resolveObject,
ClassLoader appClassLoader)
throws Exception
- Obtain an ObjectInputStream that allows de-serialization
of a graph of objects.
- Specified by:
createObjectInputStream in interface J2EEObjectStreamFactory
- Returns:
- an ObjectInputStream that can be used to deserialize objects
- Throws:
IOException - when the de-serialziation fails
Exception
Copyright © 2012 GlassFish Community. All Rights Reserved.