com.sun.enterprise.container.common.impl.util
Class JavaEEIOUtilsImpl
java.lang.Object
com.sun.enterprise.container.common.impl.util.JavaEEIOUtilsImpl
- All Implemented Interfaces:
- JavaEEIOUtils
@Service
public class JavaEEIOUtilsImpl
- extends Object
- implements JavaEEIOUtils
A contract that defines a set of methods to serialize / deserialze Java EE
objects (even if they are not directly serializable).
Some of the objects that are expected to be serialized / de-serialized are a)
Local EJB references b) EJB Handles c) JNDI (sub) contexts d) (Non
serializable) StatefulSessionBeans
- Author:
- Mahesh Kannan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaEEIOUtilsImpl
public JavaEEIOUtilsImpl()
createObjectInputStream
public ObjectInputStream createObjectInputStream(InputStream is,
boolean resolveObject,
ClassLoader loader)
throws Exception
- Specified by:
createObjectInputStream in interface JavaEEIOUtils
- Throws:
Exception
createObjectOutputStream
public ObjectOutputStream createObjectOutputStream(OutputStream os,
boolean replaceObject)
throws IOException
- Specified by:
createObjectOutputStream in interface JavaEEIOUtils
- Throws:
IOException
serializeObject
public byte[] serializeObject(Object obj,
boolean replaceObject)
throws IOException
- Specified by:
serializeObject in interface JavaEEIOUtils
- Throws:
IOException
deserializeObject
public Object deserializeObject(byte[] data,
boolean resolveObject,
ClassLoader appClassLoader)
throws Exception
- Specified by:
deserializeObject in interface JavaEEIOUtils
- Throws:
Exception
addGlassFishOutputStreamHandler
public void addGlassFishOutputStreamHandler(GlassFishOutputStreamHandler handler)
- Specified by:
addGlassFishOutputStreamHandler in interface JavaEEIOUtils
removeGlassFishOutputStreamHandler
public void removeGlassFishOutputStreamHandler(GlassFishOutputStreamHandler handler)
- Specified by:
removeGlassFishOutputStreamHandler in interface JavaEEIOUtils
addGlassFishInputStreamHandler
public void addGlassFishInputStreamHandler(GlassFishInputStreamHandler handler)
- Specified by:
addGlassFishInputStreamHandler in interface JavaEEIOUtils
removeGlassFishInputStreamHandler
public void removeGlassFishInputStreamHandler(GlassFishInputStreamHandler handler)
- Specified by:
removeGlassFishInputStreamHandler in interface JavaEEIOUtils
Copyright © 2012. All Rights Reserved.