public class Compressor extends ZlibWriter
| Modifier and Type | Field and Description |
|---|---|
protected java.util.zip.Deflater |
deflater |
DEFLATE, DEFLATERAW, FINISH, GUNZIP, GZIP, INFLATE, INFLATERAW, mode, UNZIP| Constructor and Description |
|---|
Compressor(int mode,
int level,
int strategy,
java.nio.ByteBuffer dictionary) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected int |
doDeflate(byte[] outBuf,
int outOff,
int outLen,
int flags) |
void |
reset() |
void |
setParams(int level,
int strategy) |
void |
write(int flush,
java.nio.ByteBuffer in,
java.nio.ByteBuffer out) |
public Compressor(int mode,
int level,
int strategy,
java.nio.ByteBuffer dictionary)
throws OSException
OSExceptionpublic void setParams(int level,
int strategy)
setParams in class ZlibWriterpublic void reset()
reset in class ZlibWriterpublic void write(int flush,
java.nio.ByteBuffer in,
java.nio.ByteBuffer out)
write in class ZlibWriterprotected int doDeflate(byte[] outBuf,
int outOff,
int outLen,
int flags)
public void close()
close in class ZlibWriterCopyright © 2018 Apigee Corporation. All Rights Reserved.