IOUtilsCallerImplpublic class IOUtilsCallerImpl extends Object implements org.apache.catalina.session.IOUtilsCallerThis class is used by the web tier to obtain equivalent
object stream service as the ejb tier obtains from directly
using classes like IOUtils |
Constructors Summary |
---|
public IOUtilsCallerImpl()Creates a new instance of IOUtilsCallerImpl
|
Methods Summary |
---|
public java.io.ObjectInputStream | createObjectInputStream(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.ObjectOutputStream | createObjectOutputStream(java.io.OutputStream os, boolean replaceObject)
return IOUtils.createObjectOutputStream(os, replaceObject,
new NonSerializableObjectHandler() {
public Object handleNonSerializableObject(Object obj) {
return obj;
}
}
);
| public java.io.ObjectOutputStream | createObjectOutputStream(java.io.OutputStream os, boolean replaceObject, com.sun.ejb.spi.io.NonSerializableObjectHandler handler)
return IOUtils.createObjectOutputStream(os, replaceObject, handler);
|
|