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() |
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()
public void setInput(byte[] b)
public void setDictionary(byte[] b)
public int inflate(byte[] b, int off, int len) throws StreamCorruptedException
StreamCorruptedException
public int inflate(byte[] b) throws StreamCorruptedException
StreamCorruptedException
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()