Package org.jboss.invocation

Examples of org.jboss.invocation.MarshalledValueInputStream.readObject()


         // store new state
         Fqn fqn;
         while (in_stream.available() > 0)
         {
            nd = (NodeData) in.readObject();

            if (moveToBuddy)
               fqn = BuddyManager.getBackupFqn(subtree, nd.fqn);
            else
               fqn = nd.fqn;
View Full Code Here


      File child = new File(f, DATA);
      if (!child.exists()) return new HashMap(0); // no node attribs exist hence the empty HashMap.
      //if(!child.exists()) return null;
      FileInputStream in = new FileInputStream(child);
      MarshalledValueInputStream input = new MarshalledValueInputStream(in);
      Map m = (Map) input.readObject();
      in.close();
      return m;
   }

   protected void storeAttributes(Fqn fqn, Map attrs) throws Exception
View Full Code Here

      this.remove(Fqn.fromString("/"));

      // store new state
      try {
         while(true) {
            nd=(NodeData) in.readObject();
            if(nd.attrs != null)
               this.put(nd.fqn, nd.attrs, true); // creates a node with 0 or more attributes
            else
               this.put(nd.fqn, null)// creates a node with null attributes
         }
View Full Code Here

      // Read the MethodCall object using specified class loader
      Object obj = null;
      try
      {
         obj = ois.readObject();
      } finally
      {
          if (oldTcl != null)
          {
              Thread.currentThread().setContextClassLoader(oldTcl);
View Full Code Here

      try
      {
         // Use an ObjectInputStream that instantiates objects
         // using the Thread Context ClassLoader (TCL)
         ObjectInputStream oos = new MarshalledValueInputStream(bais);
         return oos.readObject();
      }
      catch (Exception e)
      {
         log.error("Cannot deserialize", e);
         return null;
View Full Code Here

      this.remove(Fqn.fromString("/"));

      // store new state
      try {
         while(true) {
            nd=(NodeData) in.readObject();
            if(nd.attrs != null)
               this.put(nd.fqn, nd.attrs, true); // creates a node with 0 or more attributes
            else
               this.put(nd.fqn, null)// creates a node with null attributes
         }
View Full Code Here

         // store new state
         Fqn fqn = null;
         while(in_stream.available() > 0)
         {
            nd=(NodeData)in.readObject();

            if (moveToBuddy)
               fqn = BuddyManager.getBackupFqn(subtree, nd.fqn);
            else
               fqn = nd.fqn;
View Full Code Here

         // store new state
         Fqn fqn;
         while (in_stream.available() > 0)
         {
            nd = (NodeData) in.readObject();

            if (moveToBuddy)
               fqn = BuddyManager.getBackupFqn(subtree, nd.fqn);
            else
               fqn = nd.fqn;
View Full Code Here

      File child = new File(f, DATA);
      if (!child.exists()) return new HashMap(0); // no node attribs exist hence the empty HashMap.
      //if(!child.exists()) return null;
      FileInputStream in = new FileInputStream(child);
      MarshalledValueInputStream input = new MarshalledValueInputStream(in);
      Map m = (Map) input.readObject();
      if (log.isTraceEnabled())
      {
         log.trace("Read fqn="+ fqn + " from file input stream and returned " + m);
      }     
      in.close();
View Full Code Here

/*     */     }
/* 426 */     ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
/*     */     try
/*     */     {
/* 431 */       ObjectInputStream oos = new MarshalledValueInputStream(bais);
/* 432 */       return oos.readObject();
/*     */     }
/*     */     catch (Exception e)
/*     */     {
/* 436 */       log.error("Cannot deserialize", e);
/* 437 */     }return null;
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.