public class Compression extends java.lang.Object implements Compression
Modifier and Type | Field and Description |
---|---|
private static int |
BUF_SIZE |
private int |
buffer_margin |
private byte[] |
inflated_buf |
private com.jcraft.jzlib.ZStream |
stream |
private byte[] |
tmpbuf |
private int |
type |
DEFLATER, INFLATER
Constructor and Description |
---|
Compression() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(byte[] buf,
int start,
int[] len) |
void |
init(int type,
int level) |
byte[] |
uncompress(byte[] buffer,
int start,
int[] length) |
private static final int BUF_SIZE
private final int buffer_margin
private int type
private com.jcraft.jzlib.ZStream stream
private byte[] tmpbuf
private byte[] inflated_buf
public void init(int type, int level)
init
in interface Compression
public byte[] compress(byte[] buf, int start, int[] len)
compress
in interface Compression
public byte[] uncompress(byte[] buffer, int start, int[] length)
uncompress
in interface Compression