com.izforge.izpack.compressor
Class BZip2PackCompressor
java.lang.Object
com.izforge.izpack.compressor.PackCompressorBase
com.izforge.izpack.compressor.BZip2PackCompressor
- All Implemented Interfaces:
- PackCompressor
- public class BZip2PackCompressor
- extends PackCompressorBase
IzPack will be able to support different compression methods for the
packs included in the installation jar file.
This class implements the PackCompressor for the compression format "bzip2".
- Author:
- Klaus Bartz
Method Summary |
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. |
Methods inherited from class com.izforge.izpack.compressor.PackCompressorBase |
getCompressionFormatSymbols, getCompressionLevel, getContainerPaths, getDecoderClassNames, getDecoderMapperName, getEncoderClassName, getOutputInstance, loadClass, needsBufferedOutputStream, resolveConstructorParams, setCompiler, setCompressionLevel, useStandardCompression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THIS_FORMAT_NAMES
private static final java.lang.String[] THIS_FORMAT_NAMES
THIS_CONTAINER_PATH
private static final java.lang.String[] THIS_CONTAINER_PATH
THIS_DECODER_MAPPER
private static final java.lang.String THIS_DECODER_MAPPER
- See Also:
- Constant Field Values
THIS_DECODER_CLASS_NAMES
private static final java.lang.String[][] THIS_DECODER_CLASS_NAMES
THIS_ENCODER_CLASS_NAME
private static final java.lang.String THIS_ENCODER_CLASS_NAME
- See Also:
- Constant Field Values
BZip2PackCompressor
public BZip2PackCompressor()
getOutputStream
public java.io.OutputStream getOutputStream(java.io.OutputStream os)
throws java.lang.Exception
- Description copied from interface:
PackCompressor
- 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
- Returns:
- a newly created encoding output stream
- Throws:
java.lang.Exception