@Service public class JavaEEObjectStreamFactory extends Object
| Constructor and Description |
|---|
JavaEEObjectStreamFactory() |
| Modifier and Type | Method and Description |
|---|---|
ObjectInputStream |
createObjectInputStream(InputStream is,
boolean resolveObject,
ClassLoader loader)
Obtain an ObjectInputStream that allows de-serialization
of a graph of objects.
|
ObjectOutputStream |
createObjectOutputStream(OutputStream os,
boolean replaceObject)
Obtain an ObjectOutputStream that allows serialization
of a graph of objects.
|
Object |
deserializeObject(byte[] data,
boolean resolveObject,
ClassLoader classLoader) |
byte[] |
serializeObject(Object obj,
boolean replaceObject) |
public static final Logger _logger
public ObjectOutputStream createObjectOutputStream(OutputStream os, boolean replaceObject) throws IOException
IOException - when the serialziation failspublic ObjectInputStream createObjectInputStream(InputStream is, boolean resolveObject, ClassLoader loader) throws Exception
IOException - when the de-serialziation failsExceptionpublic final byte[] serializeObject(Object obj, boolean replaceObject) throws IOException
IOExceptionpublic final Object deserializeObject(byte[] data, boolean resolveObject, ClassLoader classLoader) throws Exception
ExceptionCopyright © 2013. All Rights Reserved.