- java.lang.Object
-
- swim.codec.Decoder<O>
-
- swim.deflate.Inflate<O>
-
-
Field Summary
Fields Modifier and Type Field Description int
avail_in
int
avail_out
static int
DEF_WBITS
int
flush
boolean
is_last
byte[]
next_in
int
next_in_index
byte[]
next_out
int
next_out_index
Decoder<O>
output
long
total_in
long
total_out
int
whave
byte[]
window
InputBuffer
window_buffer
int
wnext
static int
Z_BLOCK
static int
Z_BUF_ERROR
static int
Z_DATA_ERROR
static int
Z_ERRNO
static int
Z_FINISH
static int
Z_FULL_FLUSH
static int
Z_MEM_ERROR
static int
Z_NEED_DICT
static int
Z_NO_FLUSH
static int
Z_NO_WRAP
static int
Z_OK
static int
Z_PARTIAL_FLUSH
static int
Z_STREAM_END
static int
Z_STREAM_ERROR
static int
Z_SYNC_FLUSH
static int
Z_TREES
static int
Z_VERSION_ERROR
static int
Z_WRAP_GZIP
static int
Z_WRAP_ZLIB
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Inflate<O>
clone()
Decoder<O>
feed(InputBuffer input)
Incrementally decodes as muchinput
buffer data as possible, and returns anotherDecoder
that represents the continuation of how to decode additional buffer data.Inflate<O>
flush(int flush)
boolean
inflate(int flush)
protected void
inflateInit(int wrap, int windowBits)
void
inflateReset()
void
inflateReset(int wrap, int windowBits)
void
inflateResetKeep()
void
initWindow()
-
-
-
Field Detail
-
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
-
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
-
-
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:Decoder
Incrementally decodes as muchinput
buffer data as possible, and returns anotherDecoder
that represents the continuation of how to decode additional buffer data. IfisLast
istrue
, thenfeed
must return a terminatedDecoder
, i.e. aDecoder
in the done state, or in the error state. The giveninput
buffer is only guaranteed to be valid for the duration of the method call; references toinput
must not be stored.
-
inflate
public boolean inflate(int flush)
-
-