GlassFishObjectInputStream(Collection<GlassFishInputStreamHandler> handlers, InputStream in, ClassLoader appCl, boolean resolve) throws IOException, StreamCorruptedException { super(in); appLoader = appCl; this.handlers = handlers; if (resolve) { enableResolveObject(resolve); } inputStreamHelper = ObjectInputOutputStreamFactoryFactory.getFactory(); }
GlassFishObjectOutputStream(Collection<GlassFishOutputStreamHandler> handlers, OutputStream out, boolean replaceObject) throws IOException { super(out); this.handlers = handlers; if (replaceObject == true) { enableReplaceObject(replaceObject); } outputStreamHelper = ObjectInputOutputStreamFactoryFactory.getFactory(); }
ObjectOutputStream oos = getFactory().createObjectOutputStream(bos); oos.writeObject(obj); oos.flush(); final ObjectInputStream ois = getFactory().createObjectInputStream(bis); obj = AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException, ClassNotFoundException {