Package com.jcraft.jzlib
Class Deflater
java.lang.Object
com.jcraft.jzlib.ZStream
com.jcraft.jzlib.Deflater
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private boolean
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
deflate
(int flush) int
end()
Those methods are expected to be override by Inflater and Deflater.boolean
finished()
int
init
(int level) int
init
(int level, boolean nowrap) int
init
(int level, int bits) int
init
(int level, int bits, boolean nowrap) int
init
(int level, int bits, int memlevel) int
init
(int level, int bits, int memlevel, JZlib.WrapperType wrapperType) int
params
(int level, int strategy) int
setDictionary
(byte[] dictionary, int dictLength) Methods inherited from class com.jcraft.jzlib.ZStream
deflateEnd, deflateInit, deflateInit, deflateInit, deflateInit, deflateInit, deflateInit, deflateParams, deflateSetDictionary, flush_pending, free, getAdler, getAvailIn, getAvailOut, getMessage, getNextIn, getNextInIndex, getNextOut, getNextOutIndex, getTotalIn, getTotalOut, inflate, 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 Details
-
MAX_WBITS
private static final int MAX_WBITS- See Also:
-
DEF_WBITS
private static final int DEF_WBITS- See Also:
-
Z_NO_FLUSH
private static final int Z_NO_FLUSH- See Also:
-
Z_PARTIAL_FLUSH
private static final int Z_PARTIAL_FLUSH- See Also:
-
Z_SYNC_FLUSH
private static final int Z_SYNC_FLUSH- See Also:
-
Z_FULL_FLUSH
private static final int Z_FULL_FLUSH- See Also:
-
Z_FINISH
private static final int Z_FINISH- See Also:
-
MAX_MEM_LEVEL
private static final int MAX_MEM_LEVEL- See Also:
-
Z_OK
private static final int Z_OK- See Also:
-
Z_STREAM_END
private static final int Z_STREAM_END- See Also:
-
Z_NEED_DICT
private static final int Z_NEED_DICT- See Also:
-
Z_ERRNO
private static final int Z_ERRNO- See Also:
-
Z_STREAM_ERROR
private static final int Z_STREAM_ERROR- See Also:
-
Z_DATA_ERROR
private static final int Z_DATA_ERROR- See Also:
-
Z_MEM_ERROR
private static final int Z_MEM_ERROR- See Also:
-
Z_BUF_ERROR
private static final int Z_BUF_ERROR- See Also:
-
Z_VERSION_ERROR
private static final int Z_VERSION_ERROR- See Also:
-
finished
private boolean finished
-
-
Constructor Details
-
Deflater
public Deflater() -
Deflater
- Throws:
GZIPException
-
Deflater
- Throws:
GZIPException
-
Deflater
- Throws:
GZIPException
-
Deflater
- Throws:
GZIPException
-
Deflater
public Deflater(int level, int bits, int memlevel, JZlib.WrapperType wrapperType) throws GZIPException - Throws:
GZIPException
-
Deflater
- Throws:
GZIPException
-
-
Method Details
-
init
public int init(int level) -
init
public int init(int level, boolean nowrap) -
init
public int init(int level, int bits) -
init
-
init
public int init(int level, int bits, int memlevel) -
init
public int init(int level, int bits, boolean nowrap) -
deflate
public int deflate(int flush) -
end
public int end()Description copied from class:ZStream
Those methods are expected to be override by Inflater and Deflater. In the future, they will become abstract methods. -
params
public int params(int level, int strategy) -
setDictionary
public int setDictionary(byte[] dictionary, int dictLength) -
finished
public boolean finished() -
copy
-