|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--compress.CompressAlgo | +--compress.Huff
A concrete CompressAlgo for Huffman coding
Field Summary | |
static Huff |
Singleton
|
Constructor Summary | |
private |
Huff()
|
Method Summary | |
java.io.File |
decode(java.io.File fileIn)
Decodes fileIn. |
java.io.File |
encode(java.io.File fileIn)
Encodes fileIn using Huffman coding and gives back the encoded file with a .ccc attatched to the name. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final Huff Singleton
Constructor Detail |
private Huff()
Method Detail |
public java.io.File encode(java.io.File fileIn)
encode
in class CompressAlgo
File
- The file to be encodedpublic java.io.File decode(java.io.File fileIn)
decode
in class CompressAlgo
File
- The Huffman encoded file.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |