public void reset() { if (impl == null) { throw new NullPointerException(); } flushParm = Z_NO_FLUSH; finished = false; impl.init(compressLevel, strategy, nowrap); }
public void setInput(byte[] buf, int off, int nbytes) { if (impl == null) { throw new IllegalStateException(); } // avoid int overflow, check null buf if (off <= buf.length && nbytes >= 0 && off >= 0 && buf.length - off >= nbytes) { inLength = nbytes; inRead = 0; if (impl.next_in == null) { impl.init(compressLevel, strategy, nowrap); } impl.setInput(buf, off, nbytes, false); } else { throw new ArrayIndexOutOfBoundsException(); } }
int resultCode = z.init( compressionLevel, windowBits, memLevel, ZlibUtil.convertWrapperType(wrapper));
int resultCode = z.init( compressionLevel, windowBits, memLevel, ZlibUtil.convertWrapperType(wrapper));
int resultCode = z.init( compressionLevel, windowBits, memLevel, ZlibUtil.convertWrapperType(wrapper));
public int init(int level, boolean nowrap){ return init(level, MAX_WBITS, nowrap); } public int init(int level, int bits){
public int init(int level, boolean nowrap){ return init(level, MAX_WBITS, nowrap); } public int init(int level, int bits){
public int init(int level, int bits){ return init(level, bits, false); } public int init(int level, int bits, int memlevel, JZlib.WrapperType wrapperType){
public ZInputStream(InputStream in, int level) throws IOException { super(in); this.in=in; deflater = new Deflater(); deflater.init(level); compress=true; }
public Deflater(int level, int bits, boolean nowrap) throws GZIPException { super(); int ret = init(level, bits, nowrap); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public Deflater(int level, int bits, boolean nowrap) throws GZIPException { super(); int ret = init(level, bits, nowrap); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public Deflater(int level, int bits, int memlevel) throws GZIPException { super(); int ret = init(level, bits, memlevel); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public ZInputStream(InputStream in, int level) throws IOException { super(in); this.in=in; deflater = new Deflater(); deflater.init(level); compress=true; }
public ZInputStream(InputStream in, int level) throws IOException { super(in); this.in=in; deflater = new Deflater(); deflater.init(level); compress=true; }
public Deflater(int level, int bits, int memlevel) throws GZIPException { super(); int ret = init(level, bits, memlevel); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public Deflater(int level, int bits, int memlevel, JZlib.WrapperType wrapperType) throws GZIPException { super(); int ret = init(level, bits, memlevel, wrapperType); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public Deflater(int level, int bits, int memlevel) throws GZIPException { super(); int ret = init(level, bits, memlevel); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public Deflater(int level, int bits, int memlevel, JZlib.WrapperType wrapperType) throws GZIPException { super(); int ret = init(level, bits, memlevel, wrapperType); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public Deflater(int level, int bits, boolean nowrap) throws GZIPException { super(); int ret = init(level, bits, nowrap); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public Deflater(int level, int bits, int memlevel, JZlib.WrapperType wrapperType) throws GZIPException { super(); int ret = init(level, bits, memlevel, wrapperType); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }