/** * @deprecated */ public ObjectInputStream deserialize(ObjectName name, byte[] data) throws InstanceNotFoundException, OperationsException { try { ClassLoader cl = this.getClassLoaderFor(name); return new ObjectInputStreamWithClassLoader(new ByteArrayInputStream(data), cl); } catch (IOException e) { throw new OperationsException("I/O exception deserializing: " + e.getMessage()); } }
/** * @deprecated */ public ObjectInputStream deserialize(ObjectName name, byte[] data) throws InstanceNotFoundException, OperationsException { try { ClassLoader cl = this.getClassLoaderFor(name); return new ObjectInputStreamWithClassLoader(new ByteArrayInputStream(data), cl); } catch (IOException e) { throw new OperationsException("I/O exception deserializing: " + e.getMessage()); } }
/** * @deprecated */ public ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] data) throws InstanceNotFoundException, OperationsException, ReflectionException { try { ClassLoader cl = this.getClassLoader(loaderName); return new ObjectInputStreamWithClassLoader(new ByteArrayInputStream(data), cl); } catch (IOException e) { throw new OperationsException("I/O exception deserializing: " + e.getMessage()); } }
/** * @deprecated */ public ObjectInputStream deserialize(String className, ObjectName loaderName, byte[] data) throws InstanceNotFoundException, OperationsException, ReflectionException { try { ClassLoader cl = this.getClassLoader(loaderName); return new ObjectInputStreamWithClassLoader(new ByteArrayInputStream(data), cl); } catch (IOException e) { throw new OperationsException("I/O exception deserializing: " + e.getMessage()); } }
ObjectInputStream objectinputstream = new ObjectInputStreamWithClassLoader(bytearrayinputstream,cl); Object obj = objectinputstream.readObject(); return obj;
ObjectInputStream objectinputstream = new ObjectInputStreamWithClassLoader(bytearrayinputstream,cl); Object obj = objectinputstream.readObject(); return obj;
/** * @deprecated */ public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException, ReflectionException { try { Class c = this.getClassLoaderRepository().loadClass(className); ClassLoader cl = c.getClassLoader(); return new ObjectInputStreamWithClassLoader(new ByteArrayInputStream(data), cl); } catch (IOException e) { throw new OperationsException("I/O exception deserializing: " + e.getMessage()); } catch (ClassNotFoundException e) { throw new ReflectionException(e, "Class not found from default repository: " + className); } }
/** * @deprecated */ public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException, ReflectionException { try { Class c = this.getClassLoaderRepository().loadClass(className); ClassLoader cl = c.getClassLoader(); return new ObjectInputStreamWithClassLoader(new ByteArrayInputStream(data), cl); } catch (IOException e) { throw new OperationsException("I/O exception deserializing: " + e.getMessage()); } catch (ClassNotFoundException e) { throw new ReflectionException(e, "Class not found from default repository: " + className); } }
if (is == null) throw new IllegalArgumentException("Object not found " + element.getObject()); ObjectInputStreamWithClassLoader ois = new ObjectInputStreamWithClassLoader(is, ctxClassLoader); instance = ois.readObject();