assignment4
Interface IHuffConstants

All Known Subinterfaces:
IHuffProcessor
All Known Implementing Classes:
SimpleHuffProcessor

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

BITS_PER_WORD

static final int BITS_PER_WORD
The standard number of bits per chunk/word when huffing.

See Also:
Constant Field Values

ALPH_SIZE

static final int ALPH_SIZE
The size of the alphabet given the number of bits per chunk, this should be 2^BITS_PER_WORD.

See Also:
Constant Field Values

BITS_PER_INT

static final 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.

See Also:
Constant Field Values

PSEUDO_EOF

static final int PSEUDO_EOF
The value of the PSEUDO_EOF character. This is one-more than the maximum value of a legal BITS_PER_WORD-bit character.

See Also:
Constant Field Values

MAGIC_NUMBER

static final int MAGIC_NUMBER
Isolate the magic numbers in one place.

See Also:
Constant Field Values

STORE_COUNTS

static final int STORE_COUNTS
See Also:
Constant Field Values

STORE_TREE

static final int STORE_TREE
See Also:
Constant Field Values

STORE_CUSTOM

static final int STORE_CUSTOM
See Also:
Constant Field Values