Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.net
Interface Decompressor  view Decompressor download Decompressor.java

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

Method Summary
 void end()
           
 boolean finished()
           
 int getAdler()
           
 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[] dic)
           
 void setDictionary(byte[] dic, int off, int len)
           
 void setInput(byte[] b)
           
 void setInput(byte[] b, int off, int len)
           
 

Method Detail

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)