public class TestHuffmanEncoder extends TestCase2
Deflater
does not provide access to the dictionary.
For the B+Tree, what we generally want is to use a canonical huffman code
since it is both more space efficient and preserves the alphabetic ordering
of the coded values. However, this test suite might be refactored for store
level record compression.
Hu-Tucker links:
(BSD style license; the Java classes are JNI
wrappers that expose part of this functionality. The JNI interface could
doubtless be extended to gain greater access to the underlying library.
madler@alumni.caltech.edu is the remaining active author.)
,
(BSD style license; this is a pure Java
port of the zlib library and might provide access to the dictionary).
,
(GPL license; there is a java
binding and it provides faster compression and extremely fast
decompression. There is a pure Java decompression package, but the
compression package is only available in C. The Java code is also GPL.
The author offers the possibility of alternative licensing on request.)
,
(FAQs on the compression news
group).
,
(Practical Huffman coding by a
data compression consultant : michael@compressconsult.com).
,
http://www.cs.helsinki.fi/u/jikorhon/ngp/compression.html
,
http://coding.derkeiler.com/Archive/Java/comp.lang.java.programmer/2003-10/1545.html
,
http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/package-summary.html#package_description
,
(RFC)
Modifier and Type | Class and Description |
---|---|
static class |
TestHuffmanEncoder.HuffmanDecoder
Decoder for ZLIB.
|
static class |
TestHuffmanEncoder.HuffmanEncoder
Class provides only the huffman encoding aspect of the ZLIB compression
standard.
|
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestHuffmanEncoder() |
TestHuffmanEncoder(String arg0) |
Modifier and Type | Method and Description |
---|---|
void |
test_huffman_reuse()
|
void |
test_huffman()
Simple application of the
Deflater to encode a byte[] using a
Huffman encoding and decode that byte[]. |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getProperties, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logProperties
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
public TestHuffmanEncoder()
public TestHuffmanEncoder(String arg0)
arg0
- public void test_huffman() throws IOException
Deflater
to encode a byte[] using a
Huffman encoding and decode that byte[].IOException
public void test_huffman_reuse() throws IOException
Deflater
and an Inflater
to
encode and decode byte[]s. While instances of these classes are reused,
concurrency is not tested (reuse is serialized).IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.