public ZInputStream(InputStream in, int level) { super(in); this.in=in; z.deflateInit(level); compress=true; z.next_in=buf; z.next_in_index=0; z.avail_in=0; }
public ZOutputStream(OutputStream out, int level, boolean nowrap) { super(); this.out=out; z.deflateInit(level, nowrap); compress=true; }
public int deflateInit(int level, int bits){ return deflateInit(level, bits, false); } public int deflateInit(int level, int bits, int memlevel, JZlib.WrapperType wrapperType){
public ZOutputStream(OutputStream out, int level, boolean nowrap) { super(); this.out=out; z.deflateInit(level, nowrap); compress=true; }
public int deflateInit(int level, int bits){ return deflateInit(level, bits, false); } public int deflateInit(int level, int bits, int memlevel, JZlib.WrapperType wrapperType){
public int deflateInit(int level, int bits){ return deflateInit(level, bits, false); } public int deflateInit(int level, int bits, boolean nowrap){
public ZOutputStream(OutputStream out, int level) { super(); this.out=out; z.deflateInit(level); compress=true; }
public ZInputStream(InputStream in, int level) { super(in); this.in=in; z.deflateInit(level); compress=true; z.next_in=buf; z.next_in_index=0; z.avail_in=0; }
public ZInputStream(InputStream in, int level) { super(in); this.in=in; z.deflateInit(level); compress=true; z.next_in=buf; z.next_in_index=0; z.avail_in=0; }
public int deflateInit(int level, boolean nowrap){ return deflateInit(level, MAX_WBITS, nowrap); } public int deflateInit(int level, int bits){
public int deflateInit(int level, int bits){ return deflateInit(level, bits, false); } public int deflateInit(int level, int bits, boolean nowrap){
public int deflateInit(int level){ return deflateInit(level, MAX_WBITS); } public int deflateInit(int level, boolean nowrap){
public int deflateInit(int level, boolean nowrap){ return deflateInit(level, MAX_WBITS, nowrap); } public int deflateInit(int level, int bits){
public void init(int type, int level){ if(type==DEFLATER){ stream.deflateInit(level); this.type=DEFLATER; } else if(type==INFLATER){ stream.inflateInit(); inflated_buf=new byte[BUF_SIZE]; this.type=INFLATER; } }
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 void init(int type, int level){ if(type==DEFLATER){ stream.deflateInit(level); this.type=DEFLATER; } else if(type==INFLATER){ stream.inflateInit(); inflated_buf=new byte[BUF_SIZE]; this.type=INFLATER; } }
public void init(int type, int level){ if(type==DEFLATER){ stream.deflateInit(level); this.type=DEFLATER; } else if(type==INFLATER){ stream.inflateInit(); inflated_buf=new byte[BUF_SIZE]; this.type=INFLATER; } }
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 void init(int type, int level){ if(type==DEFLATER){ stream.deflateInit(level); this.type=DEFLATER; } else if(type==INFLATER){ stream.inflateInit(); inflated_buf=new byte[BUF_SIZE]; this.type=INFLATER; } }
public void init(int type, int level) { if(type == SshCompression.DEFLATER) { stream.deflateInit(level); // this.type = SshCompression.DEFLATER; } else if(type == SshCompression.INFLATER) { stream.inflateInit(); // this.type = SshCompression.INFLATER; } }