Package com.esotericsoftware.kryo.serializers

Examples of com.esotericsoftware.kryo.serializers.TaggedFieldSerializer


    TestClass object1 = new TestClass();
    object1.child = new TestClass();
    object1.other = new AnotherClass();
    object1.other.value = "meow";

    TaggedFieldSerializer serializer = new TaggedFieldSerializer(kryo, TestClass.class);
    serializer.removeField("text");
    kryo.register(TestClass.class, serializer);
    kryo.register(AnotherClass.class, new TaggedFieldSerializer(kryo, AnotherClass.class));
    roundTrip(39, 55, object1);

    kryo.register(TestClass.class, new TaggedFieldSerializer(kryo, TestClass.class));
    Object object2 = kryo.readClassAndObject(input);
    assertEquals(object1, object2);
  }
View Full Code Here

TOP

Related Classes of com.esotericsoftware.kryo.serializers.TaggedFieldSerializer

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.