public class Inflater extends Object
setInput()
, then inflate() it. If inflate doesn't
inflate any bytes there may be three reasons:
setInput()
.
NOTE: needsInput() also returns true when, the stream is finished.
setDictionary()
.Constructor and Description |
---|
Inflater()
Creates a new inflater.
|
Inflater(boolean nowrap)
Creates a new inflater.
|
Modifier and Type | Method and Description |
---|---|
void |
end() |
protected void |
finalize()
This method (when overriden), will be called when the VM determines that the Object can be
garbage collected.
|
boolean |
finished() |
int |
getAdler() |
long |
getBytesRead() |
long |
getBytesWritten() |
int |
getRemaining() |
int |
getTotalIn() |
int |
getTotalOut() |
int |
inflate(byte[] b) |
int |
inflate(byte[] b,
int off,
int len) |
boolean |
needsDictionary() |
boolean |
needsInput() |
void |
reset() |
void |
setDictionary(byte[] b) |
void |
setDictionary(byte[] b,
int off,
int len) |
void |
setInput(byte[] b) |
void |
setInput(byte[] b,
int off,
int len) |
public Inflater()
public Inflater(boolean nowrap)
nowrap
- true if no header and checksum field appears in the
stream. This is used for GZIPed input. For compatibility with
Sun JDK you should provide one byte of input more than needed in
this case.public void reset()
public void setInput(byte[] b, int off, int len)
public void setDictionary(byte[] b, int off, int len)
public void end()
protected void finalize()
Object
The finalize() method of a Class is only called if it overrides finalize() - the finalize() method java.lang.Object is never called by the Eve VM.
public void setInput(byte[] b)
public void setDictionary(byte[] b)
public int inflate(byte[] b, int off, int len) throws DataFormatException
DataFormatException
public int inflate(byte[] b) throws DataFormatException
DataFormatException
public boolean finished()
public boolean needsInput()
public boolean needsDictionary()
public int getRemaining()
public long getBytesRead()
public long getBytesWritten()
public int getTotalIn()
public int getTotalOut()
public int getAdler()