Package com.jcraft.jzlib
Class Inflater
- java.lang.Object
-
- com.jcraft.jzlib.ZStream
-
- com.jcraft.jzlib.Inflater
-
public final class Inflater extends ZStream
-
-
Field Summary
Fields Modifier and Type Field Description private static intDEF_WBITSprivate booleanfinishedprivate static intMAX_MEM_LEVELprivate static intMAX_WBITSprivate static intZ_BUF_ERRORprivate static intZ_DATA_ERRORprivate static intZ_ERRNOprivate static intZ_FINISHprivate static intZ_FULL_FLUSHprivate static intZ_MEM_ERRORprivate static intZ_NEED_DICTprivate static intZ_NO_FLUSHprivate static intZ_OKprivate static intZ_PARTIAL_FLUSHprivate static intZ_STREAM_ENDprivate static intZ_STREAM_ERRORprivate static intZ_SYNC_FLUSHprivate static intZ_VERSION_ERROR
-
Constructor Summary
Constructors Constructor Description Inflater()Inflater(boolean nowrap)Inflater(int w)Inflater(int w, boolean nowrap)Inflater(int w, JZlib.WrapperType wrapperType)Inflater(JZlib.WrapperType wrapperType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intend()Those methods are expected to be override by Inflater and Deflater.booleanfinished()intinflate(int f)intinit()intinit(boolean nowrap)intinit(int w)intinit(int w, boolean nowrap)intinit(int w, JZlib.WrapperType wrapperType)intinit(JZlib.WrapperType wrapperType)intsetDictionary(byte[] dictionary, int dictLength)intsync()intsyncPoint()-
Methods inherited from class com.jcraft.jzlib.ZStream
deflate, deflateEnd, deflateInit, deflateInit, deflateInit, deflateInit, deflateInit, deflateInit, deflateParams, deflateSetDictionary, flush_pending, free, getAdler, getAvailIn, getAvailOut, getMessage, getNextIn, getNextInIndex, getNextOut, getNextOutIndex, getTotalIn, getTotalOut, inflateEnd, inflateFinished, inflateInit, inflateInit, inflateInit, inflateInit, inflateInit, inflateInit, inflateSetDictionary, inflateSync, inflateSyncPoint, read_buf, setAvailIn, setAvailOut, setInput, setInput, setInput, setNextIn, setNextInIndex, setNextOut, setNextOutIndex, setOutput, setOutput
-
-
-
-
Field Detail
-
MAX_WBITS
private static final int MAX_WBITS
- See Also:
- Constant Field Values
-
DEF_WBITS
private static final int DEF_WBITS
- See Also:
- Constant Field Values
-
Z_NO_FLUSH
private static final int Z_NO_FLUSH
- See Also:
- Constant Field Values
-
Z_PARTIAL_FLUSH
private static final int Z_PARTIAL_FLUSH
- See Also:
- Constant Field Values
-
Z_SYNC_FLUSH
private static final int Z_SYNC_FLUSH
- See Also:
- Constant Field Values
-
Z_FULL_FLUSH
private static final int Z_FULL_FLUSH
- See Also:
- Constant Field Values
-
Z_FINISH
private static final int Z_FINISH
- See Also:
- Constant Field Values
-
MAX_MEM_LEVEL
private static final int MAX_MEM_LEVEL
- See Also:
- Constant Field Values
-
Z_OK
private static final int Z_OK
- See Also:
- Constant Field Values
-
Z_STREAM_END
private static final int Z_STREAM_END
- See Also:
- Constant Field Values
-
Z_NEED_DICT
private static final int Z_NEED_DICT
- See Also:
- Constant Field Values
-
Z_ERRNO
private static final int Z_ERRNO
- See Also:
- Constant Field Values
-
Z_STREAM_ERROR
private static final int Z_STREAM_ERROR
- See Also:
- Constant Field Values
-
Z_DATA_ERROR
private static final int Z_DATA_ERROR
- See Also:
- Constant Field Values
-
Z_MEM_ERROR
private static final int Z_MEM_ERROR
- See Also:
- Constant Field Values
-
Z_BUF_ERROR
private static final int Z_BUF_ERROR
- See Also:
- Constant Field Values
-
Z_VERSION_ERROR
private static final int Z_VERSION_ERROR
- See Also:
- Constant Field Values
-
finished
private boolean finished
-
-
Constructor Detail
-
Inflater
public Inflater()
-
Inflater
public Inflater(JZlib.WrapperType wrapperType) throws GZIPException
- Throws:
GZIPException
-
Inflater
public Inflater(int w, JZlib.WrapperType wrapperType) throws GZIPException- Throws:
GZIPException
-
Inflater
public Inflater(int w) throws GZIPException- Throws:
GZIPException
-
Inflater
public Inflater(boolean nowrap) throws GZIPException- Throws:
GZIPException
-
Inflater
public Inflater(int w, boolean nowrap) throws GZIPException- Throws:
GZIPException
-
-
Method Detail
-
init
public int init()
-
init
public int init(JZlib.WrapperType wrapperType)
-
init
public int init(int w, JZlib.WrapperType wrapperType)
-
init
public int init(boolean nowrap)
-
init
public int init(int w)
-
init
public int init(int w, boolean nowrap)
-
end
public int end()
Description copied from class:ZStreamThose methods are expected to be override by Inflater and Deflater. In the future, they will become abstract methods.
-
sync
public int sync()
-
syncPoint
public int syncPoint()
-
setDictionary
public int setDictionary(byte[] dictionary, int dictLength)
-
-