Package org.jboss.serial.io

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


     
      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

     
      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

         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

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

   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

     
      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

      {
         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

         {
            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

   {
      if (trace) { log.trace(this + " creating JBossObjectInputStream"); }
     
      if (SecurityUtility.skipAccessControl())
      {
         return new JBossObjectInputStream(input, loader, new StringUtilBuffer(10024, 10024));
      }
     
      try
      {
         return (ObjectInputStream)AccessController.doPrivileged( new PrivilegedExceptionAction()
         {
            public Object run() throws Exception
            {
               return new JBossObjectInputStream(input, loader, new StringUtilBuffer(10024, 10024));
            }
         });
      }
      catch (PrivilegedActionException e)
      {
View Full Code Here

TOP

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

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.