Home » openjdk-7 » java » net » [javadoc | source]
java.net
public interface: Compressor [javadoc | source]

All Known Implementing Classes:
    DeflatingCompressor

This interface models the common methods that every compressor must provide in order to be used as a "plugin" into the compression layer. The interface scheme is based on the Deflater class, the standard compression engine available in every JVM. If you want to provide a new compression engine, you have to implement this interface and pass the class name as the property compressor:
java -Dcompressor=java.net.DeflatingCompressor ....
Method from java.net.Compressor Summary:
deflate,   deflate,   end,   finish,   finished,   getAdler,   getLevel,   getLevels,   getTotalIn,   getTotalOut,   needsInput,   reset,   setDictionary,   setDictionary,   setInput,   setInput,   setLevel,   setStrategy
Method from java.net.Compressor Detail:
 public int deflate(byte[] b)
 public int deflate(byte[] b,
    int off,
    int len)
 public  void end()
 public  void finish()
 public boolean finished()
 public int getAdler()
 public int getLevel()
    This method isn't present in the original java.net.Deflater but it's really useful.
 public int getLevels()
    This method returns information about the compression engine capabilities, as the number of supported compression levels.
 public int getTotalIn()
 public int getTotalOut()
 public boolean needsInput()
 public  void reset()
 public  void setDictionary(byte[] dic)
 public  void setDictionary(byte[] dic,
    int off,
    int len)
 public  void setInput(byte[] b)
 public  void setInput(byte[] b,
    int off,
    int len)
 public  void setLevel(int l)
 public  void setStrategy(int st)