Package com.coyotegulch.jisp
Class HuffmanFilter
- java.lang.Object
-
- com.coyotegulch.jisp.HuffmanFilter
-
- All Implemented Interfaces:
RecordFilter
public class HuffmanFilter extends java.lang.Object implements RecordFilter
A filter to automatically compress and decompress database records using the Huffman algorithm.- See Also:
Huffman,RecordFilter
-
-
Constructor Summary
Constructors Constructor Description HuffmanFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectfilterDecode(java.lang.Object target)Decompresses the target object using the Huffman algorithm.java.lang.ObjectfilterEncode(java.lang.Object target)Compresses the target object using the Huffman algorithm.
-
-
-
Method Detail
-
filterEncode
public java.lang.Object filterEncode(java.lang.Object target)
Compresses the target object using the Huffman algorithm.- Specified by:
filterEncodein interfaceRecordFilter- Parameters:
target- object to be compressed- Returns:
- compressed form of
target
-
filterDecode
public java.lang.Object filterDecode(java.lang.Object target)
Decompresses the target object using the Huffman algorithm.- Specified by:
filterDecodein interfaceRecordFilter- Parameters:
target- object to be decompressed- Returns:
- decompressed form of
target
-
-