|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object joeq.ClassLib.Common.java.util.zip.Inflater
public class Inflater
Inflater
Constructor Summary | |
---|---|
Inflater()
Creates a new inflater. |
|
Inflater(boolean nowrap)
Creates a new inflater. |
Method Summary | |
---|---|
void |
__init__(boolean nowrap)
|
void |
end()
Deprecated. Just clear all references to inflater instead. |
protected void |
finalize()
Finalizes this object. |
boolean |
finished()
Returns true, if the inflater has finished. |
int |
getAdler()
Gets the adler checksum. |
int |
getRemaining()
Gets the number of unprocessed input. |
int |
getTotalIn()
Gets the total number of processed compressed input bytes. |
int |
getTotalOut()
Gets the total number of output bytes returned by inflate(). |
int |
inflate(byte[] buf)
Inflates the compressed stream to the output buffer. |
int |
inflate(byte[] buf,
int off,
int len)
Inflates the compressed stream to the output buffer. |
boolean |
needsDictionary()
Returns true, if a preset dictionary is needed to inflate the input. |
boolean |
needsInput()
Returns true, if the input buffer is empty. |
void |
reset()
Resets the inflater so that a new stream can be decompressed. |
void |
setDictionary(byte[] buffer)
Sets the preset dictionary. |
void |
setDictionary(byte[] buffer,
int off,
int len)
Sets the preset dictionary. |
void |
setInput(byte[] buf)
Sets the input. |
void |
setInput(byte[] buf,
int off,
int len)
Sets the input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public void __init__(boolean nowrap)
public void reset()
public void setDictionary(byte[] buffer)
buffer
- the dictionary.
IllegalStateException
- if no dictionary is needed.
IllegalArgumentException
- if the dictionary checksum is
wrong.public void setDictionary(byte[] buffer, int off, int len)
buffer
- the dictionary.off
- the offset into buffer where the dictionary starts.len
- the length of the dictionary.
IllegalStateException
- if no dictionary is needed.
IllegalArgumentException
- if the dictionary checksum is
wrong.
IndexOutOfBoundsException
- if the off and/or len are wrong.public void setInput(byte[] buf)
buf
- the input.
IllegalStateException
- if no input is needed.public void setInput(byte[] buf, int off, int len)
buf
- the input.off
- the offset into buffer where the input starts.len
- the length of the input.
IllegalStateException
- if no input is needed.
IndexOutOfBoundsException
- if the off and/or len are wrong.public int inflate(byte[] buf) throws DataFormatException
buf
- the output buffer.
DataFormatException
- if deflated stream is invalid.
IllegalArgumentException
- if buf has length 0.public int inflate(byte[] buf, int off, int len) throws DataFormatException
buf
- the output buffer.off
- the offset into buffer where the output should start.len
- the maximum length of the output.
DataFormatException
- if deflated stream is invalid.
IndexOutOfBoundsException
- if the off and/or len are wrong.public boolean needsInput()
public boolean needsDictionary()
public boolean finished()
public int getAdler()
public int getTotalOut()
public int getTotalIn()
public int getRemaining()
public void end()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |