com.sun.enterprise.container.common.spi.util
Interface JavaEEIOUtils
@Contract
public interface 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
createObjectInputStream
ObjectInputStream createObjectInputStream(InputStream is,
boolean resolveObject,
ClassLoader loader)
throws Exception
- Throws:
Exception
createObjectOutputStream
ObjectOutputStream createObjectOutputStream(OutputStream os,
boolean replaceObject)
throws IOException
- Throws:
IOException
serializeObject
byte[] serializeObject(Object obj,
boolean replaceObject)
throws IOException
- Throws:
IOException
deserializeObject
Object deserializeObject(byte[] data,
boolean resolveObject,
ClassLoader appClassLoader)
throws Exception
- Throws:
Exception
Copyright © 2012 GlassFish Community. All Rights Reserved.