Examples of JBossObjectInputStream


Examples of org.jboss.serial.io.JBossObjectInputStream

  //  Convert back to Serializable
  //
    try
    {
      ByteArrayInputStream in = new ByteArrayInputStream(bytes);
      JBossObjectInputStream ois = new JBossObjectInputStream(in);
      return (Serializable) ois.readObject();
    }
    catch (Exception e)
    {
      throw new ConvertorException("Error converting Serializable", e);
    }
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStream

   private static boolean trace = log.isTraceEnabled();

   public ObjectInputStream createInput(InputStream input, ClassLoader loader) throws IOException
   {
      if (trace) { log.trace(this + " creating JBossObjectInputStream"); }
      return new JBossObjectInputStream(input, loader, new StringUtilBuffer(10024, 10024));
   }
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStream

     
      log.debug("loading state from " + file);
      try
      {
         FileInputStream fis = FISAction.open(file);
         ObjectInputStream in = new JBossObjectInputStream(fis);
         try
         {
            return (T) in.readObject();
         }
         finally
         {
            in.close();
            DeleteFileAction.delete(file);
         }
      }
      catch(ClassNotFoundException e)
      {
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStream

     
      SerializableWrapper wrapper = (SerializableWrapper)target;
      byte[] payload = wrapper.getPayload();
      ByteArrayInputStream bais = new ByteArrayInputStream(payload);
      ObjectInputStream ois = new ObjectInputStream(bais);
      JBossObjectInputStream jbis = new JBossObjectInputStream(ois);
      Object result = jbis.readObject();
      return result;
     
   }
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStream

         return null;
     
      try
      {
         FileInputStream fis = FISAction.open(file);
         ObjectInputStream in = new JBossObjectInputStream(fis);
         try
         {
            return (T) in.readObject();
         }
         finally
         {
            in.close();
            DeleteFileAction.delete(file);
         }
      }
      catch(ClassNotFoundException e)
      {
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStream

   {
      if(log.isTraceEnabled())
      {
         log.trace("Creating JBossObjectInputStream");
      }
      return new JBossObjectInputStream(input, loader);
   }
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStream

   private static boolean trace = log.isTraceEnabled();

   public ObjectInputStream createInput(InputStream input, ClassLoader loader) throws IOException
   {
      if (trace) { log.trace(this + " creating JBossObjectInputStream"); }
      return new JBossObjectInputStream(input, loader, new StringUtilBuffer(10024, 10024));
   }
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStream

     
      log.debug("loading state from " + file);
      try
      {
         FileInputStream fis = FISAction.open(file);
         ObjectInputStream in = new JBossObjectInputStream(fis);
         try
         {
            return (T) in.readObject();
         }
         finally
         {
            in.close();
            DeleteFileAction.delete(file);
         }
      }
      catch(ClassNotFoundException e)
      {
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStream

      {
         FileInputStream fis = FISAction.open(file);
         // todo need to rewrite SessionObjectInputStream to support EJB3 classes
         ObjectInputStream in;

         in = new JBossObjectInputStream(new BufferedInputStream(fis));
         try
         {
            bean = (StatefulBeanContext) in.readObject();
         }
         finally
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStream

         {
            ObjectInputStream in;
           
            FileInputStream fis = FISAction.open(file);
  
            in = new JBossObjectInputStream(new BufferedInputStream(fis));
            try
            {
               StatefulBeanContext bean = (StatefulBeanContext) in.readObject();
               beans.add(bean);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.