com.izforge.izpack.installer.unpacker
Class CompressedFileUnpacker

java.lang.Object
  extended by com.izforge.izpack.installer.unpacker.FileUnpacker
      extended by com.izforge.izpack.installer.unpacker.CompressedFileUnpacker

public class CompressedFileUnpacker
extends FileUnpacker

Unpacker for compressed files.


Constructor Summary
CompressedFileUnpacker(Cancellable cancellable, FileQueue queue, PackCompression compressionFormat)
          Constructs a CompressedFileUnpacker.
 
Method Summary
 void unpack(PackFile file, InputStream packInputStream, File target)
          Unpacks a pack file.
 
Methods inherited from class com.izforge.izpack.installer.unpacker.FileUnpacker
copy, copy, getTarget, isQueued, postCopy, read, setLastModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressedFileUnpacker

public CompressedFileUnpacker(Cancellable cancellable,
                              FileQueue queue,
                              PackCompression compressionFormat)
Constructs a CompressedFileUnpacker.

Parameters:
cancellable - determines if unpacking should be cancelled
queue - the file queue. May be null
Method Detail

unpack

public void unpack(PackFile file,
                   InputStream packInputStream,
                   File target)
            throws IOException,
                   InstallerException
Unpacks a pack file.

Specified by:
unpack in class FileUnpacker
Parameters:
file - the pack file meta-data
packInputStream - the pack input stream
target - the target
Throws:
IOException - for any I/O error
InstallerException - for any installer exception


Copyright © 2018. All rights reserved.