List of utility methods to do Byte Array Decompress
int | decompress(byte src[], int src_off, int src_len, byte dst[], int dst_off, int dst_len) decompress int len; int bptr; int iptr = src_off; int optr = dst_off; len = unsign(src[iptr++]); if (len > 17) { len = len - 17; do { ... |
String | decompress(byte[] compressed, int sequenceLen) decompress byte[] byteArr = new byte[sequenceLen]; int curRead = 0; for (int i = 0; i < compressed.length; i++) { byte bits = compressed[i]; byte a = (byte) ((bits >> 6) & 0x3); byte b = (byte) ((bits >> 4) & 0x3); byte c = (byte) ((bits >> 2) & 0x3); byte d = (byte) (bits & 0x3); ... |
String | decompress(byte[] in, int len) Uncompresses the compressed data ( in ) with the length ( len ) and returns the uncompressed String . byte[] out = new byte[4096]; int outPos = 0; int carry = -1; for (int i = 0; i < len * 2; i++) { int tblPos = in[i / 2] >> 4 - 4 * (i % 2) & 0xF; if (carry == -1) { if (tblPos < 13) { out[outPos++] = (byte) FREQUENCY_ORDERED_CHARS[tblPos]; ... |
int | decompress_action(byte[] source) Main process of decompression with Linear Prediction int numbits = 8; int i = 0; int value = 0; if (source.length <= 20) { return 2; for (i = 0; i < numbits; i++) { if (((source[20]) & (1 << i)) == 1) { ... |
String | decompressHuffman(byte[] message, int length) Unpacks huffman encoded text. try { int charsDecoded = 0; int keyIndex = 0; StringBuilder sb = new StringBuilder(); for (int offset = 0; true; offset++) { byte character = message[offset]; if (character >= 0) { keyIndex++; ... |
byte[] | decompressRTF(byte[] src) Decompresses compressed-RTF data. byte[] dst; int in = 0; int out = 0; if (src == null || src.length < 16) { throw new IllegalArgumentException("Invalid compressed-RTF header"); int compressedSize = (int) getU32(src, in); in += 4; ... |