Package org.jboss.util.stream

Examples of org.jboss.util.stream.CustomObjectInputStreamWithClassloader


   public static Object toObject(byte[] a, ClassLoader cl)
         throws IOException, ClassNotFoundException
   {
      ByteArrayInputStream is = new ByteArrayInputStream(a);
      ObjectInputStream ois =
   new CustomObjectInputStreamWithClassloader(is, cl);
      Object obj = ois.readObject();
      is.close();
      return obj;
   }
View Full Code Here


/*    */
/*    */   public static Object toObject(byte[] a, ClassLoader cl)
/*    */     throws IOException, ClassNotFoundException
/*    */   {
/* 70 */     ByteArrayInputStream is = new ByteArrayInputStream(a);
/* 71 */     ObjectInputStream ois = new CustomObjectInputStreamWithClassloader(is, cl);
/*    */
/* 73 */     Object obj = ois.readObject();
/* 74 */     is.close();
/* 75 */     return obj;
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.util.stream.CustomObjectInputStreamWithClassloader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.