|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IHuffConstants
Global constants used in Huff/Unhuff. Clients needing these
values should implement this interface or access the
values directly, e.g., as IHuffConstants.BITS_PER_WORD
. However,
implementing the interface is preferred in which case
the values can be accessed simply as BITS_PER_WORD
, for example.
Field Summary | |
---|---|
static int |
ALPH_SIZE
The size of the alphabet given the number of bits per chunk, this should be 2^BITS_PER_WORD. |
static int |
BITS_PER_INT
The standard number of bits needed to represent/store an int, this is 32 in Java and nearly all other languages. |
static int |
BITS_PER_WORD
The standard number of bits per chunk/word when huffing. |
static int |
MAGIC_NUMBER
Isolate the magic numbers in one place. |
static int |
PSEUDO_EOF
The value of the PSEUDO_EOF character. |
static int |
STORE_COUNTS
|
static int |
STORE_CUSTOM
|
static int |
STORE_TREE
|
Field Detail |
---|
static final int BITS_PER_WORD
static final int ALPH_SIZE
static final int BITS_PER_INT
static final int PSEUDO_EOF
static final int MAGIC_NUMBER
static final int STORE_COUNTS
static final int STORE_TREE
static final int STORE_CUSTOM
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |