Package com.jcraft.jzlib
Class Deflater
java.lang.Object
com.jcraft.jzlib.ZStream
com.jcraft.jzlib.Deflater
- 
Field SummaryFields inherited from class com.jcraft.jzlib.ZStreamavail_in, avail_out, DEF_WBITS, MAX_MEM_LEVEL, MAX_WBITS, msg, next_in, next_in_index, next_out, next_out_index, total_in, total_out, Z_BUF_ERROR, Z_DATA_ERROR, Z_ERRNO, Z_FINISH, Z_FULL_FLUSH, Z_MEM_ERROR, Z_NEED_DICT, Z_NO_FLUSH, Z_OK, Z_PARTIAL_FLUSH, Z_STREAM_END, Z_STREAM_ERROR, Z_SYNC_FLUSH, Z_VERSION_ERROR
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintintdeflate(int flush) intdeflateBound(int sourceLen) Calculate pessimistic deflate bound (copied from C ZLib code)intend()Those methods are expected to be override by Inflater and Deflater.booleanfinished()intinit(int level) intinit(int level, boolean nowrap) intinit(int level, int bits) intinit(int level, int bits, boolean nowrap) intinit(int level, int bits, int memlevel) intinit(int level, int bits, int memlevel, JZlib.WrapperType wrapperType) intparams(int level, int strategy) intsetDictionary(byte[] dictionary, int dictLength) Methods inherited from class com.jcraft.jzlib.ZStreamdeflateEnd, deflateInit, deflateInit, deflateInit, deflateInit, deflateInit, deflateInit, deflateParams, deflateSetDictionary, free, getAdler, getAvailIn, getAvailOut, getMessage, getNextIn, getNextInIndex, getNextOut, getNextOutIndex, getTotalIn, getTotalOut, inflate, inflateEnd, inflateFinished, inflateInit, inflateInit, inflateInit, inflateInit, inflateInit, inflateInit, inflateSetDictionary, inflateSync, inflateSyncPoint, setAvailIn, setAvailOut, setInput, setInput, setInput, setNextIn, setNextInIndex, setNextOut, setNextOutIndex, setOutput, setOutput
- 
Constructor Details- 
Deflaterpublic Deflater()
- 
Deflater- Throws:
- GZIPException
 
- 
Deflater- Throws:
- GZIPException
 
- 
Deflater- Throws:
- GZIPException
 
- 
Deflater- Throws:
- GZIPException
 
- 
Deflaterpublic Deflater(int level, int bits, int memlevel, JZlib.WrapperType wrapperType) throws GZIPException - Throws:
- GZIPException
 
- 
Deflater- Throws:
- GZIPException
 
 
- 
- 
Method Details- 
initpublic int init(int level) 
- 
initpublic int init(int level, boolean nowrap) 
- 
initpublic int init(int level, int bits) 
- 
init
- 
initpublic int init(int level, int bits, int memlevel) 
- 
initpublic int init(int level, int bits, boolean nowrap) 
- 
deflatepublic int deflate(int flush) 
- 
endpublic 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.
- 
paramspublic int params(int level, int strategy) 
- 
setDictionarypublic int setDictionary(byte[] dictionary, int dictLength) 
- 
finishedpublic boolean finished()
- 
copy
- 
deflateBoundpublic int deflateBound(int sourceLen) Calculate pessimistic deflate bound (copied from C ZLib code)- Parameters:
- sourceLen- source data length
- Returns:
- maximum size of compressed data
 
 
-