Package com.alibaba.dubbo.common.serialize

Examples of com.alibaba.dubbo.common.serialize.DataOutput


  public void testMain() throws Exception
  {
    // write.
    UnsafeByteArrayOutputStream os = new UnsafeByteArrayOutputStream();
    DataOutput cos = new GenericDataOutput(os);
    writeTest(cos);

    // read.
    byte[] b = os.toByteArray();
    DataInput cis = new GenericDataInput(new UnsafeByteArrayInputStream(b));
View Full Code Here

TOP

Related Classes of com.alibaba.dubbo.common.serialize.DataOutput

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.