JavaScript is disabled on your browser.
Field Summary
Fields
int
static final int
protected int
static final int
byte[]
int
static final int
static final int
long
long
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Constructor Summary
Constructors
Deflate (int wrap,
int level,
int windowBits)
Deflate (int wrap,
int level,
int windowBits,
int memlevel)
Deflate (int wrap,
int level,
int windowBits,
int memLevel,
int strategy)
Deflate (Encoder <?,O > input,
int wrap,
int level,
int windowBits,
int memlevel)
Deflate (Encoder <?,O > input,
int wrap,
int level,
int windowBits,
int memLevel,
int strategy)
Method Summary
All Methods Instance Methods Concrete Methods
boolean
protected int
protected int
protected int
protected int
protected int
protected void
protected void
deflateInit (int wrap,
int level,
int windowBits,
int memLevel,
int strategy)
void
void
void
Returns an Encoder
that represents the continuation of how to
encode the given input
object.
protected void
protected void
Incrementally encodes as much output
buffer data as possible, and
returns another Encoder
that represents the continuation of how to
write additional buffer data.
protected int
read_buf (byte[] buf,
int start,
int size)
Methods inherited from class swim.codec.Encoder
andThen , asDone , asError , bind , done , done , error , fork , isCont , isDone , isError , trap
Field Details
flush
protected int flush
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
Z_NO_FLUSH
public static final int Z_NO_FLUSH
See Also:
Z_PARTIAL_FLUSH
public static final int Z_PARTIAL_FLUSH
See Also:
Z_SYNC_FLUSH
public static final int Z_SYNC_FLUSH
See Also:
Z_FULL_FLUSH
public static final int Z_FULL_FLUSH
See Also:
Z_FINISH
public static final int Z_FINISH
See Also:
Z_BLOCK
public static final int Z_BLOCK
See Also:
Z_TREES
public static final int Z_TREES
See Also:
Z_OK
public static final int Z_OK
See Also:
Z_STREAM_END
public static final int Z_STREAM_END
See Also:
Z_NEED_DICT
public static final int Z_NEED_DICT
See Also:
Z_ERRNO
public static final int Z_ERRNO
See Also:
Z_STREAM_ERROR
public static final int Z_STREAM_ERROR
See Also:
Z_DATA_ERROR
public static final int Z_DATA_ERROR
See Also:
Z_MEM_ERROR
public static final int Z_MEM_ERROR
See Also:
Z_BUF_ERROR
public static final int Z_BUF_ERROR
See Also:
Z_VERSION_ERROR
public static final int Z_VERSION_ERROR
See Also:
Z_NO_WRAP
public static final int Z_NO_WRAP
See Also:
Z_WRAP_ZLIB
public static final int Z_WRAP_ZLIB
See Also:
Z_WRAP_GZIP
public static final int Z_WRAP_GZIP
See Also:
Z_NO_COMPRESSION
public static final int Z_NO_COMPRESSION
See Also:
Z_BEST_SPEED
public static final int Z_BEST_SPEED
See Also:
Z_BEST_COMPRESSION
public static final int Z_BEST_COMPRESSION
See Also:
Z_DEFAULT_COMPRESSION
public static final int Z_DEFAULT_COMPRESSION
See Also:
Z_FILTERED
public static final int Z_FILTERED
See Also:
Z_HUFFMAN_ONLY
public static final int Z_HUFFMAN_ONLY
See Also:
Z_RLE
public static final int Z_RLE
See Also:
Z_FIXED
public static final int Z_FIXED
See Also:
Z_DEFAULT_STRATEGY
public static final int Z_DEFAULT_STRATEGY
See Also:
Z_BINARY
public static final int Z_BINARY
See Also:
Z_TEXT
public static final int Z_TEXT
See Also:
Z_UNKNOWN
public static final int Z_UNKNOWN
See Also:
MAX_WBITS
public static final int MAX_WBITS
See Also:
DEF_MEM_LEVEL
public static final int DEF_MEM_LEVEL
See Also:
OS_UNKNOWN
public static final int OS_UNKNOWN
See Also:
OS_CODE
public static final int OS_CODE
See Also:
Constructor Details
Deflate
public Deflate (Encoder <?,O > input,
int wrap,
int level,
int windowBits,
int memLevel,
int strategy)
Deflate
public Deflate (Encoder <?,O > input,
int wrap,
int level,
int windowBits,
int memlevel)
Deflate
public Deflate (Encoder <?,O > input,
int wrap,
int level,
int windowBits)
Deflate
public Deflate (Encoder <?,O > input,
int wrap,
int level)
Deflate
public Deflate (Encoder <?,O > input,
int wrap)
Deflate
public Deflate (int wrap,
int level,
int windowBits,
int memLevel,
int strategy)
Deflate
public Deflate (int wrap,
int level,
int windowBits,
int memlevel)
Deflate
public Deflate (int wrap,
int level,
int windowBits)
Deflate
public Deflate (int wrap,
int level)
Deflate
public Deflate (int wrap)
Method Details
deflateInit
protected void deflateInit (int wrap,
int level,
int windowBits,
int memLevel,
int strategy)
deflateResetKeep
public void deflateResetKeep ()
deflateReset
public void deflateReset ()
deflateParams
public void deflateParams (int level,
int strategy)
flush_pending
protected void flush_pending ()
feed
Description copied from class: Encoder
Returns an Encoder
that represents the continuation of how to
encode the given input
object.
Overrides:
feed
in class Encoder <Encoder <?,O >,O >
pull
Description copied from class: Encoder
Incrementally encodes as much output
buffer data as possible, and
returns another Encoder
that represents the continuation of how to
write additional buffer data. If isLast
is true
, then
pull
must return a terminated Encoder
, i.e. an
Encoder
in the done state, or in the error state.
The given output
buffer is only guaranteed to be valid for the
duration of the method call; references to output
must not be
stored.
Specified by:
pull
in class Encoder <Encoder <?,O >,O >
deflate
public boolean deflate (int flush)
deflateEnd
protected void deflateEnd ()
read_buf
protected int read_buf (byte[] buf,
int start,
int size)
fill_window
protected void fill_window ()
deflate_stored
protected int deflate_stored (int flush)
deflate_fast
protected int deflate_fast (int flush)
deflate_slow
protected int deflate_slow (int flush)
deflate_rle
protected int deflate_rle (int flush)
deflate_huff
protected int deflate_huff (int flush)