com.sun.ejb.base.io
Class IOUtils

java.lang.Object
  extended by com.sun.ejb.base.io.IOUtils

public class IOUtils
extends Object


Constructor Summary
IOUtils()
           
 
Method Summary
static ObjectInputStream createObjectInputStream(InputStream is, boolean resolveObject, ClassLoader loader)
           
static ObjectOutputStream createObjectOutputStream(OutputStream os, boolean replaceObject)
           
static Object deserializeObject(byte[] data, boolean resolveObject, ClassLoader appClassLoader)
           
static byte[] serializeObject(Object obj, boolean replaceObject)
           
static void setJ2EEObjectStreamFactory(J2EEObjectStreamFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Method Detail

setJ2EEObjectStreamFactory

public static final void setJ2EEObjectStreamFactory(J2EEObjectStreamFactory factory)

createObjectInputStream

public static ObjectInputStream createObjectInputStream(InputStream is,
                                                        boolean resolveObject,
                                                        ClassLoader loader)
                                                 throws Exception
Throws:
Exception

createObjectOutputStream

public static ObjectOutputStream createObjectOutputStream(OutputStream os,
                                                          boolean replaceObject)
                                                   throws IOException
Throws:
IOException

serializeObject

public static final byte[] serializeObject(Object obj,
                                           boolean replaceObject)
                                    throws NotSerializableException,
                                           IOException
Throws:
NotSerializableException
IOException

deserializeObject

public static final Object deserializeObject(byte[] data,
                                             boolean resolveObject,
                                             ClassLoader appClassLoader)
                                      throws Exception
Throws:
Exception


Copyright © 2012 GlassFish Community. All Rights Reserved.