public final class Deflate
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Deflate.Config |
Modifier and Type | Field and Description |
---|---|
(package private) short |
bi_buf |
(package private) int |
bi_valid |
private static int |
BL_CODES |
(package private) short[] |
bl_count |
(package private) Tree |
bl_desc |
(package private) short[] |
bl_tree |
(package private) int |
block_start |
private static int |
BlockDone |
private static int |
Buf_size |
private static int |
BUSY_STATE |
private static Deflate.Config[] |
config_table |
(package private) int |
d_buf |
private static int |
D_CODES |
(package private) Tree |
d_desc |
(package private) byte |
data_type |
private static int |
DEF_MEM_LEVEL |
(package private) byte[] |
depth |
(package private) short[] |
dyn_dtree |
(package private) short[] |
dyn_ltree |
private static int |
DYN_TREES |
private static int |
END_BLOCK |
private static int |
FAST |
private static int |
FINISH_STATE |
private static int |
FinishDone |
private static int |
FinishStarted |
(package private) GZIPHeader |
gheader |
(package private) int |
good_match |
(package private) int |
hash_bits |
(package private) int |
hash_mask |
(package private) int |
hash_shift |
(package private) int |
hash_size |
(package private) short[] |
head |
(package private) int[] |
heap |
(package private) int |
heap_len |
(package private) int |
heap_max |
private static int |
HEAP_SIZE |
private static int |
INIT_STATE |
(package private) int |
ins_h |
(package private) byte[] |
l_buf |
private static int |
L_CODES |
(package private) Tree |
l_desc |
(package private) int |
last_eob_len |
(package private) int |
last_flush |
(package private) int |
last_lit |
private static int |
LENGTH_CODES |
(package private) int |
level |
(package private) int |
lit_bufsize |
private static int |
LITERALS |
(package private) int |
lookahead |
(package private) int |
match_available |
(package private) int |
match_length |
(package private) int |
match_start |
(package private) int |
matches |
private static int |
MAX_BITS |
(package private) int |
max_chain_length |
(package private) int |
max_lazy_match |
private static int |
MAX_MATCH |
private static int |
MAX_MEM_LEVEL |
private static int |
MAX_WBITS |
(package private) byte |
method |
private static int |
MIN_LOOKAHEAD |
private static int |
MIN_MATCH |
private static int |
NeedMore |
(package private) short[] |
next_code |
(package private) int |
nice_match |
(package private) int |
opt_len |
(package private) int |
pending |
(package private) byte[] |
pending_buf |
(package private) int |
pending_buf_size |
(package private) int |
pending_out |
private static int |
PRESET_DICT |
(package private) short[] |
prev |
(package private) int |
prev_length |
(package private) int |
prev_match |
private static int |
REP_3_6 |
private static int |
REPZ_11_138 |
private static int |
REPZ_3_10 |
private static int |
SLOW |
(package private) int |
static_len |
private static int |
STATIC_TREES |
(package private) int |
status |
private static int |
STORED |
private static int |
STORED_BLOCK |
(package private) int |
strategy |
(package private) ZStream |
strm |
(package private) int |
strstart |
(package private) int |
w_bits |
(package private) int |
w_mask |
(package private) int |
w_size |
(package private) byte[] |
window |
(package private) int |
window_size |
(package private) int |
wrap |
private static int |
Z_ASCII |
private static int |
Z_BINARY |
private static int |
Z_BUF_ERROR |
private static int |
Z_DATA_ERROR |
private static int |
Z_DEFAULT_COMPRESSION |
private static int |
Z_DEFAULT_STRATEGY |
private static int |
Z_DEFLATED |
private static java.lang.String[] |
z_errmsg |
private static int |
Z_ERRNO |
private static int |
Z_FILTERED |
private static int |
Z_FINISH |
private static int |
Z_FULL_FLUSH |
private static int |
Z_HUFFMAN_ONLY |
private static int |
Z_MEM_ERROR |
private static int |
Z_NEED_DICT |
private static int |
Z_NO_FLUSH |
private static int |
Z_OK |
private static int |
Z_PARTIAL_FLUSH |
private static int |
Z_STREAM_END |
private static int |
Z_STREAM_ERROR |
private static int |
Z_SYNC_FLUSH |
private static int |
Z_UNKNOWN |
private static int |
Z_VERSION_ERROR |
Modifier and Type | Method and Description |
---|---|
(package private) void |
_tr_align() |
(package private) void |
_tr_flush_block(int buf,
int stored_len,
boolean eof) |
(package private) void |
_tr_stored_block(int buf,
int stored_len,
boolean eof) |
(package private) boolean |
_tr_tally(int dist,
int lc) |
(package private) void |
bi_flush() |
(package private) void |
bi_windup() |
(package private) int |
build_bl_tree() |
java.lang.Object |
clone() |
(package private) void |
compress_block(short[] ltree,
short[] dtree) |
(package private) void |
copy_block(int buf,
int len,
boolean header) |
(package private) int |
deflate_fast(int flush) |
(package private) int |
deflate_slow(int flush) |
(package private) int |
deflate_stored(int flush) |
(package private) int |
deflate(int flush) |
(package private) static int |
deflateCopy(ZStream dest,
ZStream src) |
(package private) int |
deflateEnd() |
(package private) int |
deflateInit(int level) |
(package private) int |
deflateInit(int level,
int bits) |
(package private) int |
deflateInit(int level,
int bits,
int memlevel) |
private int |
deflateInit(int level,
int method,
int windowBits,
int memLevel,
int strategy) |
(package private) int |
deflateParams(int _level,
int _strategy) |
(package private) int |
deflateReset() |
(package private) int |
deflateSetDictionary(byte[] dictionary,
int dictLength) |
private byte[] |
dup(byte[] buf) |
private int[] |
dup(int[] buf) |
private short[] |
dup(short[] buf) |
(package private) void |
fill_window() |
(package private) void |
flush_block_only(boolean eof) |
(package private) GZIPHeader |
getGZIPHeader() |
(package private) void |
init_block() |
(package private) void |
lm_init() |
(package private) int |
longest_match(int cur_match) |
(package private) void |
pqdownheap(short[] tree,
int k) |
(package private) void |
put_byte(byte c) |
(package private) void |
put_byte(byte[] p,
int start,
int len) |
(package private) void |
put_short(int w) |
(package private) void |
putShortMSB(int b) |
(package private) void |
scan_tree(short[] tree,
int max_code) |
(package private) void |
send_all_trees(int lcodes,
int dcodes,
int blcodes) |
(package private) void |
send_bits(int value,
int length) |
(package private) void |
send_code(int c,
short[] tree) |
(package private) void |
send_tree(short[] tree,
int max_code) |
(package private) void |
set_data_type() |
(package private) static boolean |
smaller(short[] tree,
int n,
int m,
byte[] depth) |
(package private) void |
tr_init() |
private static final int MAX_MEM_LEVEL
private static final int Z_DEFAULT_COMPRESSION
private static final int MAX_WBITS
private static final int DEF_MEM_LEVEL
private static final int STORED
private static final int FAST
private static final int SLOW
private static final Deflate.Config[] config_table
private static final java.lang.String[] z_errmsg
private static final int NeedMore
private static final int BlockDone
private static final int FinishStarted
private static final int FinishDone
private static final int PRESET_DICT
private static final int Z_FILTERED
private static final int Z_HUFFMAN_ONLY
private static final int Z_DEFAULT_STRATEGY
private static final int Z_NO_FLUSH
private static final int Z_PARTIAL_FLUSH
private static final int Z_SYNC_FLUSH
private static final int Z_FULL_FLUSH
private static final int Z_FINISH
private static final int Z_OK
private static final int Z_STREAM_END
private static final int Z_NEED_DICT
private static final int Z_ERRNO
private static final int Z_STREAM_ERROR
private static final int Z_DATA_ERROR
private static final int Z_MEM_ERROR
private static final int Z_BUF_ERROR
private static final int Z_VERSION_ERROR
private static final int INIT_STATE
private static final int BUSY_STATE
private static final int FINISH_STATE
private static final int Z_DEFLATED
private static final int STORED_BLOCK
private static final int STATIC_TREES
private static final int DYN_TREES
private static final int Z_BINARY
private static final int Z_ASCII
private static final int Z_UNKNOWN
private static final int Buf_size
private static final int REP_3_6
private static final int REPZ_3_10
private static final int REPZ_11_138
private static final int MIN_MATCH
private static final int MAX_MATCH
private static final int MIN_LOOKAHEAD
private static final int MAX_BITS
private static final int D_CODES
private static final int BL_CODES
private static final int LENGTH_CODES
private static final int LITERALS
private static final int L_CODES
private static final int HEAP_SIZE
private static final int END_BLOCK
ZStream strm
int status
byte[] pending_buf
int pending_buf_size
int pending_out
int pending
int wrap
byte data_type
byte method
int last_flush
int w_size
int w_bits
int w_mask
byte[] window
int window_size
short[] prev
short[] head
int ins_h
int hash_size
int hash_bits
int hash_mask
int hash_shift
int block_start
int match_length
int prev_match
int match_available
int strstart
int match_start
int lookahead
int prev_length
int max_chain_length
int max_lazy_match
int level
int strategy
int good_match
int nice_match
short[] dyn_ltree
short[] dyn_dtree
short[] bl_tree
Tree l_desc
Tree d_desc
Tree bl_desc
short[] bl_count
short[] next_code
int[] heap
int heap_len
int heap_max
byte[] depth
byte[] l_buf
int lit_bufsize
int last_lit
int d_buf
int opt_len
int static_len
int matches
int last_eob_len
short bi_buf
int bi_valid
GZIPHeader gheader
Deflate(ZStream strm)
void lm_init()
void tr_init()
void init_block()
void pqdownheap(short[] tree, int k)
static boolean smaller(short[] tree, int n, int m, byte[] depth)
void scan_tree(short[] tree, int max_code)
int build_bl_tree()
void send_all_trees(int lcodes, int dcodes, int blcodes)
void send_tree(short[] tree, int max_code)
final void put_byte(byte[] p, int start, int len)
final void put_byte(byte c)
final void put_short(int w)
final void putShortMSB(int b)
final void send_code(int c, short[] tree)
void send_bits(int value, int length)
void _tr_align()
boolean _tr_tally(int dist, int lc)
void compress_block(short[] ltree, short[] dtree)
void set_data_type()
void bi_flush()
void bi_windup()
void copy_block(int buf, int len, boolean header)
void flush_block_only(boolean eof)
int deflate_stored(int flush)
void _tr_stored_block(int buf, int stored_len, boolean eof)
void _tr_flush_block(int buf, int stored_len, boolean eof)
void fill_window()
int deflate_fast(int flush)
int deflate_slow(int flush)
int longest_match(int cur_match)
int deflateInit(int level, int bits, int memlevel)
int deflateInit(int level, int bits)
int deflateInit(int level)
private int deflateInit(int level, int method, int windowBits, int memLevel, int strategy)
int deflateReset()
int deflateEnd()
int deflateParams(int _level, int _strategy)
int deflateSetDictionary(byte[] dictionary, int dictLength)
int deflate(int flush)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
private byte[] dup(byte[] buf)
private short[] dup(short[] buf)
private int[] dup(int[] buf)
GZIPHeader getGZIPHeader()