com.izforge.izpack.installer.multiunpacker
Class MultiVolumeFileUnpacker
java.lang.Object
com.izforge.izpack.installer.unpacker.FileUnpacker
com.izforge.izpack.installer.multiunpacker.MultiVolumeFileUnpacker
public class MultiVolumeFileUnpacker
- extends FileUnpacker
A multi-volume file unpacker.
- Author:
- Tim Anderson
|
Method Summary |
protected void |
skip(long bytes)
Skips bytes in a stream. |
void |
unpack(PackFile packFile,
InputStream packInputStream,
File target)
Unpacks a pack file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiVolumeFileUnpacker
public MultiVolumeFileUnpacker(FileSpanningInputStream volumes,
Cancellable cancellable,
FileQueue queue)
- Constructs a MultiVolumeFileUnpacker.
- Parameters:
volumes - the input streamcancellable - determines if unpacking should be cancelledqueue - the file queue. May be null
unpack
public void unpack(PackFile packFile,
InputStream packInputStream,
File target)
throws IOException,
InstallerException
- Unpacks a pack file.
- Specified by:
unpack in class FileUnpacker
- Parameters:
packFile - the pack file meta-datapackInputStream - the pack input streamtarget - the target
- Throws:
InterruptedIOException - if the unpack is cancelled
IOException - for any I/O error
InstallerException - for any installer exception
skip
protected void skip(long bytes)
throws IOException
- Skips bytes in a stream.
- Parameters:
bytes - the no. of bytes to skip
- Throws:
IOException - for any I/O error, or if the no. of bytes skipped doesn't match that expected
Copyright © 2018. All rights reserved.