public class Inflater extends Object
Modifier and Type | Method and Description |
---|---|
void |
end() |
protected void |
finalize()
The default finalizer does nothing.
|
boolean |
finished() |
int |
getAdler() |
int |
getRemaining() |
int |
getTotalIn() |
int |
getTotalOut() |
int |
inflate(byte[] buf) |
int |
inflate(byte[] buf,
int off,
int len) |
boolean |
needsDictionary() |
boolean |
needsInput() |
void |
reset() |
void |
setDictionary(byte[] buf) |
void |
setDictionary(byte[] buf,
int off,
int len) |
void |
setInput(byte[] buf) |
void |
setInput(byte[] buf,
int off,
int len)
if a Header is expected we check if dictionary is needed
|4 bits cinfo|4 bits cm|2 bits Flevel|1 bit FDICT|5bits checksum|
cinfo = compression info if CM=8 then cinfo = log2(LZ77 window size) - 8
else cinfo is not defined (0)
cm = compression method ...
|
public int inflate(byte[] buf) throws DataFormatException
DataFormatException
public void setInput(byte[] buf)
public void setDictionary(byte[] buf)
public int getAdler()
public boolean needsDictionary()
public boolean finished()
public boolean needsInput()
public int getTotalIn()
public int getTotalOut()
public int inflate(byte[] buf, int off, int len) throws DataFormatException
DataFormatException
public void setInput(byte[] buf, int off, int len)
public void reset()
protected void finalize()
Object
public void end()
public void setDictionary(byte[] buf, int off, int len)
public int getRemaining()