public interface PackCompressor
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getCompressionFormatSymbols()
Returns all symbolic names which are used for this compressor.
|
int |
getCompressionLevel()
Returns the compression level to be used.
|
java.lang.String[] |
getContainerPaths()
Returns the path where the compiler can find the classes;
normaly this is a path to a jar file.
|
java.lang.String[][] |
getDecoderClassNames()
Returns the qualified names of all needed classes for decoding.
|
java.lang.String |
getDecoderMapperName()
Returns the qualified name of the class which should be used
as InputStream in the installer.
|
java.lang.String |
getEncoderClassName()
Returns the qualified name of the encoding output stream.
|
java.io.OutputStream |
getOutputStream(java.io.OutputStream os)
Returns a newly created output stream which write method
writes the given input encoded to the defined output stream.
|
boolean |
needsBufferedOutputStream()
Returns whether a buffered output stream should be used
intermediate between the output stream of this compressor
and the destination.
|
void |
setCompiler(Compiler compiler)
Receives the current used compiler.
|
void |
setCompressionLevel(int level)
Receives the compression level to be used.
|
boolean |
useStandardCompression()
Returns whether the standard comression should be used with
this pack compressor or not.
|
java.io.OutputStream getOutputStream(java.io.OutputStream os) throws java.lang.Exception
os
- output stream to be used as listenerjava.lang.Exception
java.lang.String[] getCompressionFormatSymbols()
java.lang.String[] getContainerPaths()
java.lang.String[][] getDecoderClassNames()
java.lang.String getEncoderClassName()
java.lang.String getDecoderMapperName()
boolean useStandardCompression()
void setCompiler(Compiler compiler)
compiler
- current active compilerboolean needsBufferedOutputStream()
void setCompressionLevel(int level)
level
- compression level to be usedint getCompressionLevel()