Interface JavaEEIOUtils
-
- All Known Implementing Classes:
JavaEEIOUtilsImpl
@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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addGlassFishInputStreamHandler(GlassFishInputStreamHandler handler)
void
addGlassFishOutputStreamHandler(GlassFishOutputStreamHandler handler)
ObjectInputStream
createObjectInputStream(InputStream is, boolean resolveObject, ClassLoader loader, long uniqueId)
ObjectOutputStream
createObjectOutputStream(OutputStream os, boolean replaceObject)
Object
deserializeObject(byte[] data, boolean resolveObject, ClassLoader appClassLoader)
Object
deserializeObject(byte[] data, boolean resolveObject, ClassLoader appClassLoader, long uniqueId)
void
removeGlassFishInputStreamHandler(GlassFishInputStreamHandler handler)
void
removeGlassFishOutputStreamHandler(GlassFishOutputStreamHandler handler)
byte[]
serializeObject(Object obj, boolean replaceObject)
-
-
-
Method Detail
-
createObjectInputStream
ObjectInputStream createObjectInputStream(InputStream is, boolean resolveObject, ClassLoader loader, long uniqueId) 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
-
deserializeObject
Object deserializeObject(byte[] data, boolean resolveObject, ClassLoader appClassLoader, long uniqueId) throws Exception
- Throws:
Exception
-
addGlassFishOutputStreamHandler
void addGlassFishOutputStreamHandler(GlassFishOutputStreamHandler handler)
-
removeGlassFishOutputStreamHandler
void removeGlassFishOutputStreamHandler(GlassFishOutputStreamHandler handler)
-
addGlassFishInputStreamHandler
void addGlassFishInputStreamHandler(GlassFishInputStreamHandler handler)
-
removeGlassFishInputStreamHandler
void removeGlassFishInputStreamHandler(GlassFishInputStreamHandler handler)
-
-