IzPack will be able to support different compression methods for the
packs included in the installation jar file.
This class is the factory which offers different "compressors" to
IzPack. It is made to mask the internal structure of each "compressor"
and gaves a common API for all supported compression methods to IzPack.
IzPacks compiler uses this class to get an encoder and the informations
which are needed to support the decompression in the installation.
All "compressors" should use this class as API and should not be
included directly in the IzPack compiler.
author: Klaus Bartz
Register a particular pack compressor to this factory.
The used symbolic name will be handled case insensitive.
Parameters: pc - an instance of the pack compressor which describes encoder and decoder for a special compression format
Returns a newly created pack compressor with the given
compression format.
Parameters: type - symbol name of compression format to be used a newly created pack compressor throws: CompilerException - if no encoder is registered for the chosen compression format
Returns whether a compressor exists for the given symbolic
name or not.
Parameters: type - symbolic compression name to be tested whether the given compression format will be supportedor not throws: CompilerException -
Register a particular pack compressor to this factory.
The used symbolic name will be handled case insensitive.
Parameters: pc - an instance of the pack compressor which describes encoder and decoder for a special compression format throws: CompilerException - if the symbol already exist or ifthe compressor is not valid