com.sun.ejb.base.io
Class JavaEEIOUtilsImpl

java.lang.Object
  extended by com.sun.ejb.base.io.JavaEEIOUtilsImpl
All Implemented Interfaces:
JavaEEIOUtils

@Service
public class JavaEEIOUtilsImpl
extends Object
implements JavaEEIOUtils

Simple wrapper to IOUtils


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

Constructor Detail

JavaEEIOUtilsImpl

public JavaEEIOUtilsImpl()
Method Detail

createObjectInputStream

public ObjectInputStream createObjectInputStream(InputStream is,
                                                 boolean resolveObject,
                                                 ClassLoader loader)
                                          throws Exception
Specified by:
createObjectInputStream in interface JavaEEIOUtils
Throws:
Exception

createObjectOutputStream

public ObjectOutputStream createObjectOutputStream(OutputStream os,
                                                   boolean replaceObject)
                                            throws IOException
Specified by:
createObjectOutputStream in interface JavaEEIOUtils
Throws:
IOException

serializeObject

public byte[] serializeObject(Object obj,
                              boolean replaceObject)
                       throws IOException
Specified by:
serializeObject in interface JavaEEIOUtils
Throws:
IOException

deserializeObject

public Object deserializeObject(byte[] data,
                                boolean resolveObject,
                                ClassLoader appClassLoader)
                         throws Exception
Specified by:
deserializeObject in interface JavaEEIOUtils
Throws:
Exception


Copyright © 2012 GlassFish Community. All Rights Reserved.