Examples of ProtobufSerializedMessage


Examples of org.apache.mina.codec.delimited.serialization.ProtobufDynamicMessageDecoder.ProtobufSerializedMessage

  public void testDynamic() throws Exception {
    ByteBufferEncoder<Person> encoder = getEncoder();
    ProtobufDynamicMessageDecoder decoder = new ProtobufDynamicMessageDecoder();

    for (Person object : getObjects()) {
      ProtobufSerializedMessage message = decoder.decode(IoBuffer
          .wrap(encoder.encode(object)));
      assertEquals(object, message.get(Person.class));
    }
  }
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.