public void reset() { if (impl == null) { throw new NullPointerException(); } finished = false; needsDictionary = false; inLength = 0; inRead = 0; impl.init(nowrap); }
/** * Creates a new instance with the specified wrapper. * * @throws DecompressionException if failed to initialize zlib */ public JZlibDecoder(ZlibWrapper wrapper) { if (wrapper == null) { throw new NullPointerException("wrapper"); } int resultCode = z.init(ZlibUtil.convertWrapperType(wrapper)); if (resultCode != JZlib.Z_OK) { ZlibUtil.fail(z, "initialization failure", resultCode); } }
/** * Creates a new instance with the specified wrapper. * * @throws DecompressionException if failed to initialize zlib */ public JZlibDecoder(ZlibWrapper wrapper) { if (wrapper == null) { throw new NullPointerException("wrapper"); } int resultCode = z.init(ZlibUtil.convertWrapperType(wrapper)); if (resultCode != JZlib.Z_OK) { ZlibUtil.fail(z, "initialization failure", resultCode); } }
/** * Creates a new instance with the specified wrapper. * * @throws DecompressionException if failed to initialize zlib */ public JZlibDecoder(ZlibWrapper wrapper) { if (wrapper == null) { throw new NullPointerException("wrapper"); } int resultCode = z.init(ZlibUtil.convertWrapperType(wrapper)); if (resultCode != JZlib.Z_OK) { ZlibUtil.fail(z, "initialization failure", resultCode); } }
public Inflater() { super(); init(); }
public int init(){ return init(DEF_WBITS); }
public Inflater(int w, JZlib.WrapperType wrapperType) throws GZIPException { super(); int ret = init(w, wrapperType); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public Inflater(int w, boolean nowrap) throws GZIPException { super(); int ret = init(w, nowrap); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public Inflater(int w, boolean nowrap) throws GZIPException { super(); int ret = init(w, nowrap); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public ZOutputStream(OutputStream out) throws IOException { super(out); this.out=out; inflater = new Inflater(); inflater.init(); compress=false; }
public Inflater(int w, JZlib.WrapperType wrapperType) throws GZIPException { super(); int ret = init(w, wrapperType); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public ZOutputStream(OutputStream out) throws IOException { super(out); this.out=out; inflater = new Inflater(); inflater.init(); compress=false; }
public Inflater(int w, JZlib.WrapperType wrapperType) throws GZIPException { super(); int ret = init(w, wrapperType); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public Inflater(int w, boolean nowrap) throws GZIPException { super(); int ret = init(w, nowrap); if(ret!=Z_OK) throw new GZIPException(ret+": "+msg); }
public ZOutputStream(OutputStream out) throws IOException { super(out); this.out=out; inflater = new Inflater(); inflater.init(); compress=false; }
/** * Creates a new instance with the specified wrapper. * * @throws DecompressionException if failed to initialize zlib */ public JZlibDecoder(ZlibWrapper wrapper) { if (wrapper == null) { throw new NullPointerException("wrapper"); } int resultCode = z.init(ZlibUtil.convertWrapperType(wrapper)); if (resultCode != JZlib.Z_OK) { ZlibUtil.fail(z, "initialization failure", resultCode); } }
private void init(int windowBits) { flater = new com.jcraft.jzlib.Inflater(); flater.init(windowBits); collected = new byte[BASE_SIZE]; collectedIdx = 0; input = new ByteList(); }
private void init(int windowBits) { flater = new com.jcraft.jzlib.Inflater(); flater.init(windowBits); collected = new byte[BASE_SIZE]; collectedIdx = 0; input = new ByteList(); }
private void init(int windowBits) { flater = new com.jcraft.jzlib.Inflater(); flater.init(windowBits); collected = new byte[BASE_SIZE]; collectedIdx = 0; input = new ByteList(); }
private void init(int windowBits) { flater = new com.jcraft.jzlib.Inflater(); flater.init(windowBits); collected = new byte[BASE_SIZE]; collectedIdx = 0; input = new ByteList(); }