FileDocCategorySizeDatePackage
IOUtilsCallerImpl.javaAPI DocGlassfish v2 API4024Fri May 04 22:32:56 BST 2007com.sun.ejb.base.io

IOUtilsCallerImpl

public class IOUtilsCallerImpl extends Object implements org.apache.catalina.session.IOUtilsCaller
This class is used by the web tier to obtain equivalent object stream service as the ejb tier obtains from directly using classes like IOUtils
author
Administrator

Fields Summary
Constructors Summary
public IOUtilsCallerImpl()
Creates a new instance of IOUtilsCallerImpl

    
Methods Summary
public java.io.ObjectInputStreamcreateObjectInputStream(java.io.InputStream is, boolean resolveObject, java.lang.ClassLoader loader)

        ObjectInputStream strm = null;
        try {
            strm = IOUtils.createObjectInputStream(is, resolveObject, loader);
        } catch (Exception ex) {
            //deliberate no-op - escape findbugs warning
            assert true;
        }
        if (strm == null) {
            strm = new CustomObjectInputStream(is, loader);
        }
        return strm;
    
public java.io.ObjectOutputStreamcreateObjectOutputStream(java.io.OutputStream os, boolean replaceObject)

        return IOUtils.createObjectOutputStream(os, replaceObject, 
            new NonSerializableObjectHandler() {
                public Object handleNonSerializableObject(Object obj) {
                    return obj;
                }
            }            
        );
    
public java.io.ObjectOutputStreamcreateObjectOutputStream(java.io.OutputStream os, boolean replaceObject, com.sun.ejb.spi.io.NonSerializableObjectHandler handler)

        return IOUtils.createObjectOutputStream(os, replaceObject, handler);