- java.lang.Object
-
- swim.codec.Decoder<O>
-
- swim.deflate.Inflate<O>
-
-
Field Summary
Fields Modifier and Type Field Description intavail_inintavail_outstatic intDEF_WBITSintflushbooleanis_lastbyte[]next_inintnext_in_indexbyte[]next_outintnext_out_indexDecoder<O>outputlongtotal_inlongtotal_outintwhavebyte[]windowInputBufferwindow_bufferintwnextstatic intZ_BLOCKstatic intZ_BUF_ERRORstatic intZ_DATA_ERRORstatic intZ_ERRNOstatic intZ_FINISHstatic intZ_FULL_FLUSHstatic intZ_MEM_ERRORstatic intZ_NEED_DICTstatic intZ_NO_FLUSHstatic intZ_NO_WRAPstatic intZ_OKstatic intZ_PARTIAL_FLUSHstatic intZ_STREAM_ENDstatic intZ_STREAM_ERRORstatic intZ_SYNC_FLUSHstatic intZ_TREESstatic intZ_VERSION_ERRORstatic intZ_WRAP_GZIPstatic intZ_WRAP_ZLIB
-
Method Summary
Modifier and Type Method Description Inflate<O>clone()Decoder<O>feed(InputBuffer input)Incrementally decodes as muchinputbuffer data as possible, and returns anotherDecoderthat represents the continuation of how to decode additional buffer data.Inflate<O>flush(int flush)booleaninflate(int flush)protected voidinflateInit(int wrap, int windowBits)voidinflateReset()voidinflateReset(int wrap, int windowBits)voidinflateResetKeep()voidinitWindow()
-
-
-
Field Detail
-
Z_NO_FLUSH
public static final int Z_NO_FLUSH
- See Also:
- Constant Field Values
-
Z_PARTIAL_FLUSH
public static final int Z_PARTIAL_FLUSH
- See Also:
- Constant Field Values
-
Z_SYNC_FLUSH
public static final int Z_SYNC_FLUSH
- See Also:
- Constant Field Values
-
Z_FULL_FLUSH
public static final int Z_FULL_FLUSH
- See Also:
- Constant Field Values
-
Z_FINISH
public static final int Z_FINISH
- See Also:
- Constant Field Values
-
Z_BLOCK
public static final int Z_BLOCK
- See Also:
- Constant Field Values
-
Z_TREES
public static final int Z_TREES
- See Also:
- Constant Field Values
-
Z_OK
public static final int Z_OK
- See Also:
- Constant Field Values
-
Z_STREAM_END
public static final int Z_STREAM_END
- See Also:
- Constant Field Values
-
Z_NEED_DICT
public static final int Z_NEED_DICT
- See Also:
- Constant Field Values
-
Z_ERRNO
public static final int Z_ERRNO
- See Also:
- Constant Field Values
-
Z_STREAM_ERROR
public static final int Z_STREAM_ERROR
- See Also:
- Constant Field Values
-
Z_DATA_ERROR
public static final int Z_DATA_ERROR
- See Also:
- Constant Field Values
-
Z_MEM_ERROR
public static final int Z_MEM_ERROR
- See Also:
- Constant Field Values
-
Z_BUF_ERROR
public static final int Z_BUF_ERROR
- See Also:
- Constant Field Values
-
Z_VERSION_ERROR
public static final int Z_VERSION_ERROR
- See Also:
- Constant Field Values
-
Z_NO_WRAP
public static final int Z_NO_WRAP
- See Also:
- Constant Field Values
-
Z_WRAP_ZLIB
public static final int Z_WRAP_ZLIB
- See Also:
- Constant Field Values
-
Z_WRAP_GZIP
public static final int Z_WRAP_GZIP
- See Also:
- Constant Field Values
-
DEF_WBITS
public static final int DEF_WBITS
- See Also:
- Constant Field Values
-
is_last
public boolean is_last
-
flush
public int flush
-
next_in
public byte[] next_in
-
next_in_index
public int next_in_index
-
avail_in
public int avail_in
-
total_in
public long total_in
-
next_out
public byte[] next_out
-
next_out_index
public int next_out_index
-
avail_out
public int avail_out
-
total_out
public long total_out
-
whave
public int whave
-
wnext
public int wnext
-
window
public byte[] window
-
window_buffer
public InputBuffer window_buffer
-
-
Method Detail
-
inflateResetKeep
public void inflateResetKeep()
-
inflateReset
public void inflateReset()
-
inflateReset
public void inflateReset(int wrap, int windowBits)
-
inflateInit
protected void inflateInit(int wrap, int windowBits)
-
initWindow
public void initWindow()
-
feed
public Decoder<O> feed(InputBuffer input)
Description copied from class:DecoderIncrementally decodes as muchinputbuffer data as possible, and returns anotherDecoderthat represents the continuation of how to decode additional buffer data. IfisLastistrue, thenfeedmust return a terminatedDecoder, i.e. aDecoderin the done state, or in the error state. The giveninputbuffer is only guaranteed to be valid for the duration of the method call; references toinputmust not be stored.
-
inflate
public boolean inflate(int flush)
-
-