Package com.peterhi.working

Examples of com.peterhi.working.Encoder.encode()


    jason.setSpouse(marilyn);
    marilyn.setSpouse(jason);
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Encoder enc = new Encoder(baos);
    enc.encode(jason);
    enc.close();
   
    System.out.println("BAOS size = " + baos.size());
   
    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
View Full Code Here


      new String[] { "B", "C" },
    });
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Encoder enc = new Encoder(baos);
    enc.encode(c);
    enc.close();
    System.out.println("Size = " + baos.size());
   
    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
    Decoder dec = new Decoder(bais);
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.