com.jcraft.jzlib
Class Deflate

java.lang.Object
  extended by com.jcraft.jzlib.Deflate

public final class Deflate
extends java.lang.Object


Nested Class Summary
(package private) static class Deflate.Config
           
 
Field Summary
(package private)  short bi_buf
           
(package private)  int bi_valid
           
(package private)  short[] bl_count
           
(package private)  Tree bl_desc
           
(package private)  short[] bl_tree
           
(package private)  int block_start
           
(package private)  int d_buf
           
(package private)  Tree d_desc
           
(package private)  byte data_type
           
(package private)  byte[] depth
           
(package private)  short[] dyn_dtree
           
(package private)  short[] dyn_ltree
           
(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
           
(package private)  int ins_h
           
(package private)  int l_buf
           
(package private)  Tree l_desc
           
(package private)  int last_eob_len
           
(package private)  int last_flush
           
(package private)  int last_lit
           
(package private)  int level
           
(package private)  int lit_bufsize
           
(package private)  int lookahead
           
(package private)  int match_available
           
(package private)  int match_length
           
(package private)  int match_start
           
(package private)  int matches
           
(package private)  int max_chain_length
           
(package private)  int max_lazy_match
           
(package private)  byte method
           
(package private)  int nice_match
           
(package private)  int noheader
           
(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
           
(package private)  short[] prev
           
(package private)  int prev_length
           
(package private)  int prev_match
           
(package private)  int static_len
           
(package private)  int status
           
(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
           
 
Constructor Summary
Deflate()
           
 
Method Summary
(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()
           
(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(ZStream strm, int flush)
           
(package private)  int deflateEnd()
           
(package private)  int deflateInit(ZStream strm, int level)
           
(package private)  int deflateInit(ZStream strm, int level, int bits)
           
(package private)  int deflateInit2(ZStream strm, int level, int method, int windowBits, int memLevel, int strategy)
           
(package private)  int deflateParams(ZStream strm, int _level, int _strategy)
           
(package private)  int deflateReset(ZStream strm)
           
(package private)  int deflateSetDictionary(ZStream strm, byte[] dictionary, int dictLength)
           
(package private)  void fill_window()
           
(package private)  void flush_block_only(boolean eof)
           
(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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

strm

ZStream strm

status

int status

pending_buf

byte[] pending_buf

pending_buf_size

int pending_buf_size

pending_out

int pending_out

pending

int pending

noheader

int noheader

data_type

byte data_type

method

byte method

last_flush

int last_flush

w_size

int w_size

w_bits

int w_bits

w_mask

int w_mask

window

byte[] window

window_size

int window_size

prev

short[] prev

head

short[] head

ins_h

int ins_h

hash_size

int hash_size

hash_bits

int hash_bits

hash_mask

int hash_mask

hash_shift

int hash_shift

block_start

int block_start

match_length

int match_length

prev_match

int prev_match

match_available

int match_available

strstart

int strstart

match_start

int match_start

lookahead

int lookahead

prev_length

int prev_length

max_chain_length

int max_chain_length

max_lazy_match

int max_lazy_match

level

int level

strategy

int strategy

good_match

int good_match

nice_match

int nice_match

dyn_ltree

short[] dyn_ltree

dyn_dtree

short[] dyn_dtree

bl_tree

short[] bl_tree

l_desc

Tree l_desc

d_desc

Tree d_desc

bl_desc

Tree bl_desc

bl_count

short[] bl_count

heap

int[] heap

heap_len

int heap_len

heap_max

int heap_max

depth

byte[] depth

l_buf

int l_buf

lit_bufsize

int lit_bufsize

last_lit

int last_lit

d_buf

int d_buf

opt_len

int opt_len

static_len

int static_len

matches

int matches

last_eob_len

int last_eob_len

bi_buf

short bi_buf

bi_valid

int bi_valid
Constructor Detail

Deflate

Deflate()
Method Detail

lm_init

void lm_init()

tr_init

void tr_init()

init_block

void init_block()

pqdownheap

void pqdownheap(short[] tree,
                int k)

smaller

static boolean smaller(short[] tree,
                       int n,
                       int m,
                       byte[] depth)

scan_tree

void scan_tree(short[] tree,
               int max_code)

build_bl_tree

int build_bl_tree()

send_all_trees

void send_all_trees(int lcodes,
                    int dcodes,
                    int blcodes)

send_tree

void send_tree(short[] tree,
               int max_code)

put_byte

final void put_byte(byte[] p,
                    int start,
                    int len)

put_byte

final void put_byte(byte c)

put_short

final void put_short(int w)

putShortMSB

final void putShortMSB(int b)

send_code

final void send_code(int c,
                     short[] tree)

send_bits

void send_bits(int value,
               int length)

_tr_align

void _tr_align()

_tr_tally

boolean _tr_tally(int dist,
                  int lc)

compress_block

void compress_block(short[] ltree,
                    short[] dtree)

set_data_type

void set_data_type()

bi_flush

void bi_flush()

bi_windup

void bi_windup()

copy_block

void copy_block(int buf,
                int len,
                boolean header)

flush_block_only

void flush_block_only(boolean eof)

deflate_stored

int deflate_stored(int flush)

_tr_stored_block

void _tr_stored_block(int buf,
                      int stored_len,
                      boolean eof)

_tr_flush_block

void _tr_flush_block(int buf,
                     int stored_len,
                     boolean eof)

fill_window

void fill_window()

deflate_fast

int deflate_fast(int flush)

deflate_slow

int deflate_slow(int flush)

longest_match

int longest_match(int cur_match)

deflateInit

int deflateInit(ZStream strm,
                int level,
                int bits)

deflateInit

int deflateInit(ZStream strm,
                int level)

deflateInit2

int deflateInit2(ZStream strm,
                 int level,
                 int method,
                 int windowBits,
                 int memLevel,
                 int strategy)

deflateReset

int deflateReset(ZStream strm)

deflateEnd

int deflateEnd()

deflateParams

int deflateParams(ZStream strm,
                  int _level,
                  int _strategy)

deflateSetDictionary

int deflateSetDictionary(ZStream strm,
                         byte[] dictionary,
                         int dictLength)

deflate

int deflate(ZStream strm,
            int flush)


Copyright 2006 null. All Rights Reserved.