Package org.jboss.serial.io

Examples of org.jboss.serial.io.JBossObjectOutputStream


/*     */   }
/*     */
/*     */   public ObjectOutputStream createOutput(OutputStream output) throws IOException
/*     */   {
/*  62 */     if (trace) log.trace(this + " creating JBossObjectOutputStream");
/*  63 */     return new JBossObjectOutputStream(output, new StringUtilBuffer(10024, 10024));
/*     */   }
View Full Code Here


/* 223 */     file.deleteOnExit();
/* 224 */     log.debug("saving state to " + file);
/*     */     try
/*     */     {
/* 227 */       FileOutputStream fos = FOSAction.open(file);
/* 228 */       ObjectOutputStream out = new JBossObjectOutputStream(fos);
/*     */       try
/*     */       {
/* 231 */         out.writeObject(obj);
/* 232 */         out.flush();
/*     */       }
/*     */       finally
/*     */       {
/* 236 */         out.close();
/*     */       }
/*     */     }
/*     */     catch (IOException e)
/*     */     {
/* 241 */       throw new RuntimeException("failed to store object " + obj.getId(), e);
View Full Code Here

/*     */
/*     */     try
/*     */     {
/* 378 */       FileOutputStream fos = FOSAction.open(file);
/*     */
/* 382 */       ObjectOutputStream out = new JBossObjectOutputStream(fos, false);
/*     */       try
/*     */       {
/* 386 */         out.writeObject(ctx);
/* 387 */         out.flush();
/* 388 */         fos.flush();
/* 389 */         fos.close();
/*     */       }
/*     */       finally
/*     */       {
/* 393 */         out.close();
/*     */       }
/*     */     }
/*     */     catch (EJBException e)
/*     */     {
/* 398 */       throw e;
View Full Code Here

      file.deleteOnExit();
      log.debug("saving state to " + file);
      try
      {
         FileOutputStream fos = FOSAction.open(file);
         ObjectOutputStream out = new JBossObjectOutputStream(fos);
         try
         {
            out.writeObject(obj);
            out.flush();
         }
         finally
         {
            out.close();
         }
      }
      catch(IOException e)
      {
         throw new RuntimeException("failed to store object " + obj.getId(), e);
View Full Code Here

   {
      if (log.isTraceEnabled())
      {
         log.trace("Creating JBossObjectOutputStream");
      }
      return new JBossObjectOutputStream(output, new StringUtilBuffer(10024, 10024));
   }
View Full Code Here

TOP

Related Classes of org.jboss.serial.io.JBossObjectOutputStream

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.