61626364656667
private int type; private ZStream stream; private byte[] tmpbuf=new byte[BUF_SIZE]; public Compression(){ stream=new ZStream(); }
6263646566676869707172
public boolean isDelayed() { return false; } public void init(Type type, int level) { stream = new ZStream(); if (type == Type.Deflater) { stream.deflateInit(level); } else { stream.inflateInit(); }
6566676869707172737475
default: throw new IllegalArgumentException( "invalid compression level specified" ); } // create a new instance of ZStream. This will be done only once. zStream = new ZStream(); switch( mode ) { case MODE_DEFLATER: zStream.deflateInit( this.compressionLevel );
7071727374757677787980
throw new IllegalArgumentException( "invalid compression level specified"); } // create a new instance of ZStream. This will be done only once. zStream = new ZStream(); switch (mode) { case MODE_DEFLATER: zStream.deflateInit(this.compressionLevel); break;
8485868788899091929394
8384858687888990919293
8283848586878889909192
default: throw new IllegalArgumentException("invalid compression level specified"); } // create a new instance of ZStream. This will be done only once. zStream = new ZStream(); switch (mode) { case MODE_DEFLATER: zStream.deflateInit(this.compressionLevel); break;