| java.lang.Object drjava.smyle.core.Compression
Compression | public class Compression (Code) | | |
Method Summary | |
public static void | compress(Buffer src, Buffer dest) | static void | compressDoubleZeros(Buffer src, BitBuffer dest) | static void | compressHighNibble(Buffer src, BitBuffer dest, int a, int b, int c) | static void | compressXOR(Buffer src, BitBuffer dest, int m) | static void | compressZeros(Buffer src, BitBuffer dest) | public static void | decompress(Buffer src, Buffer dest) | static void | decompressDoubleZeros(BitBuffer src, Buffer dest) | static void | decompressHighNibble(BitBuffer src, Buffer dest, int a, int b, int c) | static void | decompressXOR(BitBuffer src, Buffer dest, int m) | static void | decompressZeros(BitBuffer src, Buffer dest) | public static int | estimateDoubleZeros(byte[] chunk) | public static int | estimateHighNibble(byte[] chunk, int a, int b, int c) | public static int | estimateXOR(byte[] chunk, int m) | public static int | estimateZeros(byte[] chunk) |
NOCOMPRESSIONZEROSDOUBLEZEROSXOR5HIGHNIBBLE026HIGHNIBBLE067HIGHNIBBLE267 | final static byte NOCOMPRESSIONZEROSDOUBLEZEROSXOR5HIGHNIBBLE026HIGHNIBBLE067HIGHNIBBLE267(Code) | | |
compress | public static void compress(Buffer src, Buffer dest)(Code) | | |
compressDoubleZeros | static void compressDoubleZeros(Buffer src, BitBuffer dest)(Code) | | |
compressHighNibble | static void compressHighNibble(Buffer src, BitBuffer dest, int a, int b, int c)(Code) | | |
compressXOR | static void compressXOR(Buffer src, BitBuffer dest, int m)(Code) | | |
decompress | public static void decompress(Buffer src, Buffer dest)(Code) | | |
decompressDoubleZeros | static void decompressDoubleZeros(BitBuffer src, Buffer dest)(Code) | | |
decompressHighNibble | static void decompressHighNibble(BitBuffer src, Buffer dest, int a, int b, int c)(Code) | | |
decompressXOR | static void decompressXOR(BitBuffer src, Buffer dest, int m)(Code) | | |
decompressZeros | static void decompressZeros(BitBuffer src, Buffer dest)(Code) | | |
estimateDoubleZeros | public static int estimateDoubleZeros(byte[] chunk)(Code) | | stores every 0000 in one bit
|
estimateHighNibble | public static int estimateHighNibble(byte[] chunk, int a, int b, int c)(Code) | | compresses the most common higher-nibble of characters
|
estimateXOR | public static int estimateXOR(byte[] chunk, int m)(Code) | | |
estimateZeros | public static int estimateZeros(byte[] chunk)(Code) | | stores one bit per byte: 0 = zero; 1 = not zero
|
|
|