Examples of FastStreamWriter


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

Examples of net.buffalo.protocal.io.FastStreamWriter

    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
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.