Class Compression

  • All Implemented Interfaces:
    Compression

    public class Compression
    extends java.lang.Object
    implements Compression
    • Constructor Summary

      Constructors 
      Constructor Description
      Compression()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] compress​(byte[] buf, int start, int[] len)  
      void init​(int type, int level)  
      byte[] uncompress​(byte[] buffer, int start, int[] length)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • type

        private int type
      • stream

        private com.jcraft.jzlib.ZStream stream
      • tmpbuf

        private byte[] tmpbuf
      • inflated_buf

        private byte[] inflated_buf
    • Constructor Detail

      • Compression

        public Compression()
    • Method Detail

      • init

        public void init​(int type,
                         int level)
        Specified by:
        init in interface Compression
      • compress

        public byte[] compress​(byte[] buf,
                               int start,
                               int[] len)
        Specified by:
        compress in interface Compression
      • uncompress

        public byte[] uncompress​(byte[] buffer,
                                 int start,
                                 int[] length)
        Specified by:
        uncompress in interface Compression