|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bigzip.plugin.compression.io.NullDecompression
Constructor Summary | |
NullDecompression()
|
Method Summary | |
Decompressor |
createInstance()
Creates a new instance of the implemented Decompressor class. |
void |
end()
Discards unprocessed input and frees internal data. |
boolean |
finished()
Return true if the end of the compressed data stream has been reached. |
java.lang.String |
getName()
|
int |
getRemaining()
Returns the total number of bytes remaining in the input buffer. |
int |
getTotalIn()
Returns the total number of bytes input so far. |
int |
getTotalOut()
Returns the total number of bytes output so far. |
int |
getVersion()
return version number of the engine, in this case "0". |
int |
inflate(byte[] b)
Uncompresses bytes into specified buffer. |
int |
inflate(byte[] b,
int off,
int len)
Uncompresses bytes into specified buffer. |
boolean |
needsDictionary()
Returns true if a preset dictionary is needed for decompression. |
boolean |
needsInput()
Returns true if no data remains in the input buffer. |
void |
reset()
Resets inflater so that a new set of input data can be processed. |
void |
setDictionary(byte[] b)
Sets the preset dictionary to the given array of bytes. |
void |
setDictionary(byte[] b,
int off,
int len)
Sets the preset dictionary to the given array of bytes. |
void |
setInput(byte[] b)
Sets input data for decompression. |
void |
setInput(byte[] b,
int off,
int len)
Sets input data for decompression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullDecompression()
Method Detail |
public java.lang.String getName()
getName
in interface Decompressor
public int getVersion()
getVersion
in interface Decompressor
com.bigzip.plugin.compression.engine.Decompressor
public void setInput(byte[] b, int off, int len)
setInput
in interface Decompressor
b
- the input data bytesoff
- the start offset of the input datalen
- the length of the input dataInflater#needsInput
public void setInput(byte[] b)
setInput
in interface Decompressor
b
- the input data bytesInflater#needsInput
public void setDictionary(byte[] b, int off, int len)
setDictionary
in interface Decompressor
b
- the dictionary data bytesoff
- the start offset of the datalen
- the length of the dataInflater#needsDictionary
,
Inflater#getAdler
public void setDictionary(byte[] b)
setDictionary
in interface Decompressor
b
- the dictionary data bytesInflater#needsDictionary
,
Inflater#getAdler
public int getRemaining()
getRemaining
in interface Decompressor
public boolean needsInput()
needsInput
in interface Decompressor
public boolean needsDictionary()
needsDictionary
in interface Decompressor
InflatesetDictionary
public boolean finished()
finished
in interface Decompressor
public int inflate(byte[] b, int off, int len) throws java.util.zip.DataFormatException
inflate
in interface Decompressor
b
- the buffer for the uncompressed dataoff
- the start offset of the datalen
- the maximum number of uncompressed bytesjava.util.zip.DataFormatException
- if the compressed data format is invalidInflater#needsInput
,
Inflater#needsDictionary
public int inflate(byte[] b) throws java.util.zip.DataFormatException
inflate
in interface Decompressor
b
- the buffer for the uncompressed datajava.util.zip.DataFormatException
- if the compressed data format is invalidInflater#needsInput
,
Inflater#needsDictionary
public int getTotalIn()
getTotalIn
in interface Decompressor
public int getTotalOut()
getTotalOut
in interface Decompressor
public void reset()
reset
in interface Decompressor
public void end()
end
in interface Decompressor
public Decompressor createInstance()
createInstance
in interface Decompressor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |