public final class RANSExternalCompressor extends ExternalCompressor
NO_COMPRESSION_ARG| Constructor and Description |
|---|
RANSExternalCompressor(int order,
RANS rans) |
RANSExternalCompressor(RANS.ORDER order,
RANS rans) |
RANSExternalCompressor(RANS rans)
We use a shared RANS instance for all compressors.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data) |
boolean |
equals(java.lang.Object o) |
RANS.ORDER |
getOrder() |
int |
hashCode() |
java.lang.String |
toString() |
byte[] |
uncompress(byte[] data) |
getCompressorForMethod, getMethodpublic RANSExternalCompressor(RANS rans)
rans - public RANSExternalCompressor(int order,
RANS rans)
public RANSExternalCompressor(RANS.ORDER order, RANS rans)
public byte[] compress(byte[] data)
compress in class ExternalCompressorpublic byte[] uncompress(byte[] data)
uncompress in class ExternalCompressorpublic RANS.ORDER getOrder()
public java.lang.String toString()
toString in class ExternalCompressorpublic boolean equals(java.lang.Object o)
equals in class ExternalCompressorpublic int hashCode()
hashCode in class ExternalCompressor