public class TDeflater extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BEST_COMPRESSION |
static int |
BEST_SPEED |
static int |
DEFAULT_COMPRESSION |
static int |
DEFAULT_STRATEGY |
static int |
DEFLATED |
static int |
FILTERED |
static int |
HUFFMAN_ONLY |
static int |
NO_COMPRESSION |
Constructor and Description |
---|
TDeflater() |
TDeflater(int level) |
TDeflater(int level,
boolean noHeader) |
Modifier and Type | Method and Description |
---|---|
int |
deflate(byte[] buf) |
int |
deflate(byte[] buf,
int off,
int nbytes) |
void |
end() |
protected void |
finalize() |
void |
finish() |
boolean |
finished() |
int |
getAdler() |
long |
getBytesRead() |
long |
getBytesWritten() |
int |
getTotalIn() |
int |
getTotalOut() |
boolean |
needsInput() |
void |
reset() |
void |
setDictionary(byte[] buf) |
void |
setDictionary(byte[] buf,
int off,
int nbytes) |
void |
setInput(byte[] buf) |
void |
setInput(byte[] buf,
int off,
int nbytes) |
void |
setLevel(int level) |
void |
setStrategy(int strategy) |
public static final int BEST_COMPRESSION
public static final int BEST_SPEED
public static final int DEFAULT_COMPRESSION
public static final int DEFAULT_STRATEGY
public static final int DEFLATED
public static final int FILTERED
public static final int HUFFMAN_ONLY
public static final int NO_COMPRESSION
public TDeflater()
public TDeflater(int level)
public TDeflater(int level, boolean noHeader)
public int deflate(byte[] buf)
public int deflate(byte[] buf, int off, int nbytes)
public void end()
public void finish()
public boolean finished()
public int getAdler()
public int getTotalIn()
public int getTotalOut()
public boolean needsInput()
public void reset()
public void setDictionary(byte[] buf)
public void setDictionary(byte[] buf, int off, int nbytes)
public void setInput(byte[] buf)
public void setInput(byte[] buf, int off, int nbytes)
public void setLevel(int level)
public void setStrategy(int strategy)
public long getBytesRead()
public long getBytesWritten()
Copyright © 2019. All rights reserved.