Package net.buffalo.protocal.io

Examples of net.buffalo.protocal.io.FastStreamWriter


  }
 
  public void testList() throws Exception {
    long[] lvalues = new long[] { 1001 };
    StringWriter stringWriter2 = new StringWriter();
    FastStreamWriter SimpleStreamWriter = new FastStreamWriter(stringWriter2);
    new ArrayConverter().marshal(lvalues,
        new DefaultMarshallingContext(new DefaultConverterLookup(), SimpleStreamWriter),
        SimpleStreamWriter);
    assertEquals("<list><type>[long</type><length>1</length><long>1001</long></list>",
        stringWriter2.getBuffer().toString());
View Full Code Here


    List people = new ArrayList();
    people.add(p1);
    people.add(p2);
   
    StringWriter stringWriter = new StringWriter();
    DefaultMarshallingContext marshallingContext = new DefaultMarshallingContext(new DefaultConverterLookup(), new FastStreamWriter(stringWriter));
    marshallingContext.convertAnother(people);
  }
View Full Code Here

TOP

Related Classes of net.buffalo.protocal.io.FastStreamWriter

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.