public class PngDeflater
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PngDeflater.Code |
(package private) static class |
PngDeflater.Link |
(package private) static class |
PngDeflater.Match |
Modifier and Type | Field and Description |
---|---|
(package private) int |
adler32 |
(package private) static int |
BASE |
(package private) int |
bitCount |
(package private) int |
buffer |
(package private) java.io.ByteArrayOutputStream |
bytes |
(package private) static PngDeflater.Code[] |
distanceCodes |
(package private) static int |
HASH |
(package private) PngDeflater.Link[] |
hashtable |
(package private) byte[] |
in |
(package private) int |
inLength |
(package private) static PngDeflater.Code[] |
lengthCodes |
(package private) static int |
MAX_MATCHES |
(package private) static int |
MIN_LENGTH |
(package private) static short[] |
mirrorBytes |
(package private) int |
nextWindow |
(package private) PngDeflater.Link[] |
window |
(package private) static int |
WINDOW |
Constructor and Description |
---|
PngDeflater() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
alignToByte() |
(package private) void |
compress() |
(package private) void |
compressHuffmanOnly() |
byte[] |
deflate(byte[] input) |
(package private) PngDeflater.Code |
findCode(int value,
PngDeflater.Code[] codes) |
(package private) PngDeflater.Match |
findLongestMatch(int position,
PngDeflater.Link firstPosition) |
(package private) int |
hash(byte[] bytes) |
(package private) void |
outputLiteral(byte literal) |
(package private) void |
outputMatch(int length,
int distance) |
(package private) void |
store() |
(package private) void |
updateAdler(byte value) |
(package private) void |
updateHashtable(int to,
int from) |
(package private) void |
writeBits(int value,
int count) |
(package private) void |
writeInt(java.io.ByteArrayOutputStream baos,
int theInt) |
(package private) void |
writeShortLSB(java.io.ByteArrayOutputStream baos,
int theShort) |
static final int BASE
static final int WINDOW
static final int MIN_LENGTH
static final int MAX_MATCHES
static final int HASH
byte[] in
int inLength
java.io.ByteArrayOutputStream bytes
int adler32
int buffer
int bitCount
PngDeflater.Link[] hashtable
PngDeflater.Link[] window
int nextWindow
static final short[] mirrorBytes
static final PngDeflater.Code[] lengthCodes
static final PngDeflater.Code[] distanceCodes
void writeShortLSB(java.io.ByteArrayOutputStream baos, int theShort)
void writeInt(java.io.ByteArrayOutputStream baos, int theInt)
void updateAdler(byte value)
int hash(byte[] bytes)
void writeBits(int value, int count)
void alignToByte()
void outputLiteral(byte literal)
PngDeflater.Code findCode(int value, PngDeflater.Code[] codes)
void outputMatch(int length, int distance)
PngDeflater.Match findLongestMatch(int position, PngDeflater.Link firstPosition)
void updateHashtable(int to, int from)
void compress()
void compressHuffmanOnly()
void store()
public byte[] deflate(byte[] input)