|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.Compress
public final class Compress
This class compresses and decompresses tokens. It is inspired by the Huffman coding, but was simplified to speed up processing. NOTE: this class is not thread-safe.
Constructor Summary | |
---|---|
Compress()
|
Method Summary | |
---|---|
byte[] |
pack(byte[] txt)
Compresses the specified text. |
byte[] |
unpack(byte[] txt)
Decompresses the specified text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Compress()
Method Detail |
---|
public byte[] pack(byte[] txt)
txt
- text to be packed
public byte[] unpack(byte[] txt)
txt
- text to be unpacked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |