Package com.neovisionaries.ws.client
Class DeflateUtil
- java.lang.Object
-
- com.neovisionaries.ws.client.DeflateUtil
-
class DeflateUtil extends java.lang.ObjectUtility methods for DEFLATE (RFC 1951).
-
-
Field Summary
Fields Modifier and Type Field Description private static int[]INDICES_FROM_CODE_LENGTH_ORDER
-
Constructor Summary
Constructors Constructor Description DeflateUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static intcodeLengthOrderToIndex(int order)private static voidreadCodeLengths(ByteArray input, int[] bitIndex, int[] codeLengths, Huffman codeLengthHuffman)static intreadDistance(ByteArray input, int[] bitIndex, Huffman distanceHuffman)static voidreadDynamicTables(ByteArray input, int[] bitIndex, Huffman[] tables)static intreadLength(ByteArray input, int[] bitIndex, int literalLength)
-
-
-
Method Detail
-
readDynamicTables
public static void readDynamicTables(ByteArray input, int[] bitIndex, Huffman[] tables) throws FormatException
- Throws:
FormatException
-
readCodeLengths
private static void readCodeLengths(ByteArray input, int[] bitIndex, int[] codeLengths, Huffman codeLengthHuffman) throws FormatException
- Throws:
FormatException
-
codeLengthOrderToIndex
private static int codeLengthOrderToIndex(int order)
-
readLength
public static int readLength(ByteArray input, int[] bitIndex, int literalLength) throws FormatException
- Throws:
FormatException
-
readDistance
public static int readDistance(ByteArray input, int[] bitIndex, Huffman distanceHuffman) throws FormatException
- Throws:
FormatException
-
-