java.net
Interface Decompressor

- All Known Implementing Classes:
- InflatingDecompressor
- public interface Decompressor
This interface models the common methods that every decompressor must provide
in order to be used as a "plugin" into the decompression layer.
The interface scheme is based on the Inflater
class, the standard decompression engine available in every JVM.
If you want to provide a new decompression engine, you have to implement this
interface and pass the class name as the property decompressor:
java -Ddecompressor=java.net.InflatingDecompressor ....
- Version:
- 1.0
end
public void end()
finished
public boolean finished()
getAdler
public int getAdler()
getRemaining
public int getRemaining()
getTotalIn
public int getTotalIn()
getTotalOut
public int getTotalOut()
inflate
public int inflate(byte[] b)
throws java.util.zip.DataFormatException
inflate
public int inflate(byte[] b,
int off,
int len)
throws java.util.zip.DataFormatException
needsDictionary
public boolean needsDictionary()
needsInput
public boolean needsInput()
reset
public void reset()
setDictionary
public void setDictionary(byte[] dic)
setDictionary
public void setDictionary(byte[] dic,
int off,
int len)
setInput
public void setInput(byte[] b)
setInput
public void setInput(byte[] b,
int off,
int len)