Package com.jcraft.jzlib
Class ZStream
java.lang.Object
com.jcraft.jzlib.ZStream
ZStream
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintintprotected static final intprotected static final intprotected static final intbyte[]intbyte[]intlonglongprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintdeflate(int flush) intintdeflateInit(int level) intdeflateInit(int level, boolean nowrap) intdeflateInit(int level, int bits) intdeflateInit(int level, int bits, boolean nowrap) intdeflateInit(int level, int bits, int memlevel) intdeflateInit(int level, int bits, int memlevel, JZlib.WrapperType wrapperType) intdeflateParams(int level, int strategy) intdeflateSetDictionary(byte[] dictionary, int dictLength) intend()Those methods are expected to be override by Inflater and Deflater.booleanfinished()voidfree()longgetAdler()intintbyte[]intbyte[]intlonglongintinflate(int f) intbooleanintintinflateInit(boolean nowrap) intinflateInit(int w) intinflateInit(int w, boolean nowrap) intinflateInit(int w, JZlib.WrapperType wrapperType) intinflateInit(JZlib.WrapperType wrapperType) intinflateSetDictionary(byte[] dictionary, int dictLength) intintvoidsetAvailIn(int avail_in) voidsetAvailOut(int avail_out) voidsetInput(byte[] buf) voidsetInput(byte[] buf, boolean append) voidsetInput(byte[] buf, int off, int len, boolean append) voidsetNextIn(byte[] next_in) voidsetNextInIndex(int next_in_index) voidsetNextOut(byte[] next_out) voidsetNextOutIndex(int next_out_index) voidsetOutput(byte[] buf) voidsetOutput(byte[] buf, int off, int len) 
- 
Field Details- 
MAX_WBITSprotected static final int MAX_WBITS- See Also:
 
- 
DEF_WBITSprotected static final int DEF_WBITS- See Also:
 
- 
Z_NO_FLUSHprotected static final int Z_NO_FLUSH- See Also:
 
- 
Z_PARTIAL_FLUSHprotected static final int Z_PARTIAL_FLUSH- See Also:
 
- 
Z_SYNC_FLUSHprotected static final int Z_SYNC_FLUSH- See Also:
 
- 
Z_FULL_FLUSHprotected static final int Z_FULL_FLUSH- See Also:
 
- 
Z_FINISHprotected static final int Z_FINISH- See Also:
 
- 
MAX_MEM_LEVELprotected static final int MAX_MEM_LEVEL- See Also:
 
- 
Z_OKprotected static final int Z_OK- See Also:
 
- 
Z_STREAM_ENDprotected static final int Z_STREAM_END- See Also:
 
- 
Z_NEED_DICTprotected static final int Z_NEED_DICT- See Also:
 
- 
Z_ERRNOprotected static final int Z_ERRNO- See Also:
 
- 
Z_STREAM_ERRORprotected static final int Z_STREAM_ERROR- See Also:
 
- 
Z_DATA_ERRORprotected static final int Z_DATA_ERROR- See Also:
 
- 
Z_MEM_ERRORprotected static final int Z_MEM_ERROR- See Also:
 
- 
Z_BUF_ERRORprotected static final int Z_BUF_ERROR- See Also:
 
- 
Z_VERSION_ERRORprotected static final int Z_VERSION_ERROR- See Also:
 
- 
next_inpublic byte[] next_in
- 
next_in_indexpublic int next_in_index
- 
avail_inpublic int avail_in
- 
total_inpublic long total_in
- 
next_outpublic byte[] next_out
- 
next_out_indexpublic int next_out_index
- 
avail_outpublic int avail_out
- 
total_outpublic long total_out
- 
msg
 
- 
- 
Constructor Details- 
ZStreampublic ZStream()
- 
ZStreampublic ZStream(com.jcraft.jzlib.Checksum adler) 
 
- 
- 
Method Details- 
inflateInitpublic int inflateInit()
- 
inflateInitpublic int inflateInit(boolean nowrap) 
- 
inflateInitpublic int inflateInit(int w) 
- 
inflateInit
- 
inflateInit
- 
inflateInitpublic int inflateInit(int w, boolean nowrap) 
- 
inflatepublic int inflate(int f) 
- 
inflateEndpublic int inflateEnd()
- 
inflateSyncpublic int inflateSync()
- 
inflateSyncPointpublic int inflateSyncPoint()
- 
inflateSetDictionarypublic int inflateSetDictionary(byte[] dictionary, int dictLength) 
- 
inflateFinishedpublic boolean inflateFinished()
- 
deflateInitpublic int deflateInit(int level) 
- 
deflateInitpublic int deflateInit(int level, boolean nowrap) 
- 
deflateInitpublic int deflateInit(int level, int bits) 
- 
deflateInit
- 
deflateInitpublic int deflateInit(int level, int bits, int memlevel) 
- 
deflateInitpublic int deflateInit(int level, int bits, boolean nowrap) 
- 
deflatepublic int deflate(int flush) 
- 
deflateEndpublic int deflateEnd()
- 
deflateParamspublic int deflateParams(int level, int strategy) 
- 
deflateSetDictionarypublic int deflateSetDictionary(byte[] dictionary, int dictLength) 
- 
getAdlerpublic long getAdler()
- 
freepublic void free()
- 
setOutputpublic void setOutput(byte[] buf) 
- 
setOutputpublic void setOutput(byte[] buf, int off, int len) 
- 
setInputpublic void setInput(byte[] buf) 
- 
setInputpublic void setInput(byte[] buf, boolean append) 
- 
setInputpublic void setInput(byte[] buf, int off, int len, boolean append) 
- 
getNextInpublic byte[] getNextIn()
- 
setNextInpublic void setNextIn(byte[] next_in) 
- 
getNextInIndexpublic int getNextInIndex()
- 
setNextInIndexpublic void setNextInIndex(int next_in_index) 
- 
getAvailInpublic int getAvailIn()
- 
setAvailInpublic void setAvailIn(int avail_in) 
- 
getNextOutpublic byte[] getNextOut()
- 
setNextOutpublic void setNextOut(byte[] next_out) 
- 
getNextOutIndexpublic int getNextOutIndex()
- 
setNextOutIndexpublic void setNextOutIndex(int next_out_index) 
- 
getAvailOutpublic int getAvailOut()
- 
setAvailOutpublic void setAvailOut(int avail_out) 
- 
getTotalOutpublic long getTotalOut()
- 
getTotalInpublic long getTotalIn()
- 
getMessage
- 
endpublic int end()Those methods are expected to be override by Inflater and Deflater. In the future, they will become abstract methods.- Returns:
- zlib error code
 
- 
finishedpublic boolean finished()
 
-