com.izforge.izpack.compressor
Class RawPackCompressor

java.lang.Object
  extended by com.izforge.izpack.compressor.PackCompressorBase
      extended by com.izforge.izpack.compressor.RawPackCompressor
All Implemented Interfaces:
PackCompressor

public class RawPackCompressor
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 "raw".

Author:
Klaus Bartz

Field Summary
private static java.lang.String[] THIS_FORMAT_NAMES
           
 
Fields inherited from class com.izforge.izpack.compressor.PackCompressorBase
containerPaths, decoderClassNames, decoderMapper, encoderClassName, formatNames, paramsClasses
 
Constructor Summary
RawPackCompressor()
           
 
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
 

Field Detail

THIS_FORMAT_NAMES

private static final java.lang.String[] THIS_FORMAT_NAMES
Constructor Detail

RawPackCompressor

public RawPackCompressor()
Method Detail

getOutputStream

public java.io.OutputStream getOutputStream(java.io.OutputStream os)
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