| |
|
| java.lang.Object com.izforge.izpack.compressor.PackCompressorBase
All known Subclasses: com.izforge.izpack.compressor.RawPackCompressor, com.izforge.izpack.compressor.BZip2PackCompressor, com.izforge.izpack.compressor.DefaultPackCompressor,
PackCompressorBase | abstract public class PackCompressorBase implements PackCompressor(Code) | | IzPack will be able to support different compression methods for the
packs included in the installation jar file.
This abstract class implements the interface PackCompressor for
the common needed methods.
author: Klaus Bartz |
decoderClassNames | protected String[][] decoderClassNames(Code) | | Should contain all full qualified (use dots, not slashes)
names of the class files. Regex will be suported in the
manner of String.match .
Example:
"org.apache.tools.bzip2.CBZip2InputStream.*"
Do not forget the dot before the asterix.
For an other example see class BZip2PackCompressor.
|
PackCompressorBase | public PackCompressorBase()(Code) | | |
getCompressionFormatSymbols | public String[] getCompressionFormatSymbols()(Code) | | |
getCompressionLevel | public int getCompressionLevel()(Code) | | |
getDecoderClassNames | public String[][] getDecoderClassNames()(Code) | | |
getDecoderMapperName | public String getDecoderMapperName()(Code) | | |
getEncoderClassName | public String getEncoderClassName()(Code) | | |
getOutputInstance | protected OutputStream getOutputInstance(OutputStream slave) throws Exception(Code) | | Returns a newly created instance of the output stream which should be
used by this pack compressor. This method do not declare the
return value as FilterOutputStream although there must be an constructor
with a slave output stream as argument. This is done in this way because
some encoding streams from third party are only implemented as
"normal" output stream.
Parameters: slave - output stream to be used as slave a newly created instance of the output stream which should beused by this pack compressor throws: Exception - |
loadClass | public void loadClass(String className) throws Exception(Code) | | Loads the given class from the previos setted container paths.
Parameters: className - full qualified name of the class to be loaded throws: Exception - |
needsBufferedOutputStream | public boolean needsBufferedOutputStream()(Code) | | |
resolveConstructorParams | protected Object[] resolveConstructorParams(OutputStream slave) throws Exception(Code) | | This method will be used to support different constructor signatures.
The default is
XXXOutputStream( OutputStream slave )
if level is -1 or
XXXOutputStream( OutputStream slave, int level )
if level is other than -1.
If the signature of the used output stream will be other, overload
this method in the derived pack compressor class.
Parameters: slave - output stream to be used as slave the constructor params as Object [] to be used as constructionof the constructor via reflection throws: Exception - |
setCompressionLevel | public void setCompressionLevel(int level)(Code) | | |
useStandardCompression | public boolean useStandardCompression()(Code) | | |
|
|
|