/** * Creates a new instance of {@code Compression}. */ public CompressionImpl() { _zstream = new ZStream(); }
public Compression(){ stream=new ZStream(); }
public Compression(){ stream=new ZStream(); }
public Compression(){ stream=new ZStream(); }
public ZLibCompression() { stream = new ZStream(); }
public Compression(){ stream=new ZStream(); }
public Compression(){ stream=new ZStream(); }
public RpcGZIPOutputStream(OutputStream out) throws IOException { super(out); this.jzOutputSream = new ZStream(); this.jzOutputSream.deflateInit(JZlib.Z_DEFAULT_COMPRESSION, ZBITS, true); this.jzBytes = new byte[ZBUF_SIZE]; this.jzOutputSream.next_out = this.jzBytes; this.jzOutputSream.next_out_index = 0; this.jzOutputSream.avail_out = this.jzBytes.length; }
public RpcGZIPOutputStream(OutputStream out) throws IOException { super(out); this.jzOutputSream = new ZStream(); this.jzOutputSream.deflateInit(JZlib.Z_DEFAULT_COMPRESSION, ZBITS, true); this.jzBytes = new byte[ZBUF_SIZE]; this.jzOutputSream.next_out = this.jzBytes; this.jzOutputSream.next_out_index = 0; this.jzOutputSream.avail_out = this.jzBytes.length; }
@Override public void init(Mode mode) { stream = new ZStream(); switch (mode) { case DEFLATE: stream.deflateInit(JZlib.Z_DEFAULT_COMPRESSION); break; case INFLATE: stream.inflateInit(); break; default: assert false; } }
zStream = new ZStream();
zStream = new ZStream(); switch (mode) { case MODE_DEFLATER:
zip = new ZStream(); initZStream(zip);