Package com.esotericsoftware.kryo.compress

Examples of com.esotericsoftware.kryo.compress.DeflateCompressor


  static public void register (Kryo kryo) {
    kryo.register(SomeData.class, new DeflateCompressor(new FieldSerializer(kryo, SomeData.class)));
    kryo.register(ArrayList.class, new CollectionSerializer(kryo));
View Full Code Here

* This shows how to compress the data with Kryo, but isn't really useful to compare to other serializers.
public class KryoCompressedSerializer extends KryoOptimizedSerializer {
  public KryoCompressedSerializer () {
    Serializer mediaContentSerializer = kryo.getRegisteredClass(MediaContent.class).getSerializer();
    kryo.register(MediaContent.class, new DeflateCompressor(mediaContentSerializer));
View Full Code Here


Related Classes of com.esotericsoftware.kryo.compress.DeflateCompressor

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