Package org.teavm.classlib.java.util.zip
Class TDeflater
java.lang.Object
org.teavm.classlib.java.util.zip.TDeflater
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
deflate
(byte[] buf) int
deflate
(byte[] buf, int off, int nbytes) void
end()
protected void
finalize()
void
finish()
boolean
finished()
int
getAdler()
long
long
int
int
boolean
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)
-
Field Details
-
BEST_COMPRESSION
public static final int BEST_COMPRESSION- See Also:
-
BEST_SPEED
public static final int BEST_SPEED- See Also:
-
DEFAULT_COMPRESSION
public static final int DEFAULT_COMPRESSION- See Also:
-
DEFAULT_STRATEGY
public static final int DEFAULT_STRATEGY- See Also:
-
DEFLATED
public static final int DEFLATED- See Also:
-
FILTERED
public static final int FILTERED- See Also:
-
HUFFMAN_ONLY
public static final int HUFFMAN_ONLY- See Also:
-
NO_COMPRESSION
public static final int NO_COMPRESSION- See Also:
-
-
Constructor Details
-
TDeflater
public TDeflater() -
TDeflater
public TDeflater(int level) -
TDeflater
public TDeflater(int level, boolean noHeader)
-
-
Method Details
-
deflate
public int deflate(byte[] buf) -
deflate
public int deflate(byte[] buf, int off, int nbytes) -
end
public void end() -
finalize
protected void finalize() -
finish
public void finish() -
finished
public boolean finished() -
getAdler
public int getAdler() -
getTotalIn
public int getTotalIn() -
getTotalOut
public int getTotalOut() -
needsInput
public boolean needsInput() -
reset
public void reset() -
setDictionary
public void setDictionary(byte[] buf) -
setDictionary
public void setDictionary(byte[] buf, int off, int nbytes) -
setInput
public void setInput(byte[] buf) -
setInput
public void setInput(byte[] buf, int off, int nbytes) -
setLevel
public void setLevel(int level) -
setStrategy
public void setStrategy(int strategy) -
getBytesRead
public long getBytesRead() -
getBytesWritten
public long getBytesWritten()
-