Interface JavaEEIOUtils
-
- All Known Implementing Classes:
JavaEEIOUtilsImpl
@Contract public interface JavaEEIOUtilsA 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 voidaddGlassFishInputStreamHandler(GlassFishInputStreamHandler handler)voidaddGlassFishOutputStreamHandler(GlassFishOutputStreamHandler handler)ObjectInputStreamcreateObjectInputStream(InputStream is, boolean resolveObject, ClassLoader loader)ObjectOutputStreamcreateObjectOutputStream(OutputStream os, boolean replaceObject)ObjectdeserializeObject(byte[] data, boolean resolveObject, ClassLoader appClassLoader)voidremoveGlassFishInputStreamHandler(GlassFishInputStreamHandler handler)voidremoveGlassFishOutputStreamHandler(GlassFishOutputStreamHandler handler)byte[]serializeObject(Object obj, boolean replaceObject)
-
-
-
Method Detail
-
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
-
addGlassFishOutputStreamHandler
void addGlassFishOutputStreamHandler(GlassFishOutputStreamHandler handler)
-
removeGlassFishOutputStreamHandler
void removeGlassFishOutputStreamHandler(GlassFishOutputStreamHandler handler)
-
addGlassFishInputStreamHandler
void addGlassFishInputStreamHandler(GlassFishInputStreamHandler handler)
-
removeGlassFishInputStreamHandler
void removeGlassFishInputStreamHandler(GlassFishInputStreamHandler handler)
-
-