Examples of DeflateCompressor


Examples of com.esotericsoftware.kryo.compress.DeflateCompressor

    waitForThreads();
  }

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

Examples of com.esotericsoftware.kryo.compress.DeflateCompressor

* 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

Examples of com.linkedin.r2.filter.compression.DeflateCompressor

    return new Object[][]
      {
        { new SnappyCompressor() },
        { new Bzip2Compressor() },
        { new GzipCompressor() },
        { new DeflateCompressor()}
      };
  }
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.