Package org.jboss.serial.io

Examples of org.jboss.serial.io.JBossObjectOutputStreamSharedTree


      return new JBossObjectInputStreamSharedTree(input);
   }

   public ObjectOutput getObjectOutput(OutputStream output) throws IOException
   {
      return new JBossObjectOutputStreamSharedTree(output);
   }
View Full Code Here


  }
 
  public void testJBoss() throws Exception
  {
    ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
    ObjectOutputStream objOut = new JBossObjectOutputStreamSharedTree(byteOut);

    TestCircularReferences circular = TestCircularReferences.createTestInstance();
    objOut.writeObject(circular.getReferences());
    objOut.writeObject(circular);
    objOut.reset();
    objOut.writeObject(circular.getReferences());
   
    ObjectInputStream objInput = new JBossObjectInputStreamSharedTree(new ByteArrayInputStream(byteOut.toByteArray()));
   
    Object first = objInput.readObject();
    TestCircularReferences second = (TestCircularReferences)objInput.readObject();
View Full Code Here

      return new JBossObjectInputStreamOverride(in);
   }

   public ObjectOutputStream createObjectOutputStream(OutputStream out) throws IOException
   {
      return new JBossObjectOutputStreamSharedTree(out);
   }
View Full Code Here

TOP

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

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.