Package org.jboss.util.stream

Examples of org.jboss.util.stream.CustomObjectOutputStream


    */
   public static byte[] toByteArray(Object obj)
   {
      try {
         ByteArrayOutputStream os = new ByteArrayOutputStream();
         ObjectOutputStream oos = new CustomObjectOutputStream(os);

         oos.writeObject(obj);
         oos.flush();
         byte[] a = os.toByteArray();
         os.close();
         return a;
      }
      catch (IOException ioe) {
View Full Code Here


/*    */   public static byte[] toByteArray(Object obj)
/*    */   {
/*    */     try
/*    */     {
/* 47 */       ByteArrayOutputStream os = new ByteArrayOutputStream();
/* 48 */       ObjectOutputStream oos = new CustomObjectOutputStream(os);
/*    */
/* 50 */       oos.writeObject(obj);
/* 51 */       oos.flush();
/* 52 */       byte[] a = os.toByteArray();
/* 53 */       os.close();
/* 54 */       return a;
/*    */     } catch (IOException ioe) {
/*    */     }
View Full Code Here

TOP

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

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.