IzPack will be able to support different compression methods for the
packs included in the installation jar file.
This interface declares the handler of one compression format.
author: Klaus Bartz
getOutputStream(OutputStream os) Returns a newly created output stream which write method
writes the given input encoded to the defined output stream.
Attention! This method will be returned a valid output stream
only if it is used in the IzPack compiler, or if this pack compressor
needs no external classes.
boolean
needsBufferedOutputStream() Returns whether a buffered output stream should be used
intermediate between the output stream of this compressor
and the destination.
Returns the path where the compiler can find the classes;
normaly this is a path to a jar file.
If no additional classes are needed, this method should return null.
the path where the compiler can find the classes
Returns the qualified names of all needed classes for decoding.
All class files should be placed in the container which will
be referred by the method getContainerPath.
If no additional classes are needed, this method should return null.
qualified names of all needed classes for decoding
Returns the qualified name of the class which should be used
as InputStream in the installer. This class mapps the "real"
decoder or - if useable - the decoder name will be returned self.
If useStandardCompression is true, this method returns null.
the qualified name of the class which should be usedas InputStream in the installer
Returns the qualified name of the encoding output stream.
The class file should be placed in the container which will
be referred by the method getContainerPath.
qualified name of the encoding output stream
Returns a newly created output stream which write method
writes the given input encoded to the defined output stream.
Attention! This method will be returned a valid output stream
only if it is used in the IzPack compiler, or if this pack compressor
needs no external classes. A call in the
installation should be throw if external classes are used.
The implementation should load the needed classes via reflection
because classes are not present in the installation.
Parameters: os - output stream to be used as listener a newly created encoding output stream throws: Exception -
Returns whether a buffered output stream should be used
intermediate between the output stream of this compressor
and the destination.
wether a buffered output stream should be usedintermediate between the output stream of this compressorand the destination.
Returns whether the standard comression should be used with
this pack compressor or not. If this method returns true,
the returns values of the methods getContainerPath and
getDecoderClassNames are not valid (should be null).
whether the standard comression should be used or not