| Constructor and Description |
|---|
Expander() |
| Modifier and Type | Method and Description |
|---|---|
void |
expand(ArchiveInputStream archive,
File targetDirectory)
Expands
archive into targetDirectory. |
void |
expand(File archive,
File targetDirectory)
Expands
archive into targetDirectory. |
void |
expand(InputStream archive,
File targetDirectory)
Expands
archive into targetDirectory. |
void |
expand(SevenZFile archive,
File targetDirectory)
Expands
archive into targetDirectory. |
void |
expand(String format,
File archive,
File targetDirectory)
Expands
archive into targetDirectory. |
void |
expand(String format,
InputStream archive,
File targetDirectory)
Expands
archive into targetDirectory. |
void |
expand(String format,
SeekableByteChannel archive,
File targetDirectory)
Expands
archive into targetDirectory. |
void |
expand(ZipFile archive,
File targetDirectory)
Expands
archive into targetDirectory. |
public Expander()
public void expand(File archive, File targetDirectory) throws IOException, ArchiveException
archive into targetDirectory.
Tries to auto-detect the archive's format.
archive - the file to expandtargetDirectory - the directory to write toIOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(String format, File archive, File targetDirectory) throws IOException, ArchiveException
archive into targetDirectory.archive - the file to expandtargetDirectory - the directory to write toformat - the archive format. This uses the same format as
accepted by ArchiveStreamFactory.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(InputStream archive, File targetDirectory) throws IOException, ArchiveException
archive into targetDirectory.
Tries to auto-detect the archive's format.
archive - the file to expandtargetDirectory - the directory to write toIOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(String format, InputStream archive, File targetDirectory) throws IOException, ArchiveException
archive into targetDirectory.archive - the file to expandtargetDirectory - the directory to write toformat - the archive format. This uses the same format as
accepted by ArchiveStreamFactory.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(String format, SeekableByteChannel archive, File targetDirectory) throws IOException, ArchiveException
archive into targetDirectory.archive - the file to expandtargetDirectory - the directory to write toformat - the archive format. This uses the same format as
accepted by ArchiveStreamFactory.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(ArchiveInputStream archive, File targetDirectory) throws IOException, ArchiveException
archive into targetDirectory.archive - the file to expandtargetDirectory - the directory to write toIOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(ZipFile archive, File targetDirectory) throws IOException, ArchiveException
archive into targetDirectory.archive - the file to expandtargetDirectory - the directory to write toIOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(SevenZFile archive, File targetDirectory) throws IOException, ArchiveException
archive into targetDirectory.archive - the file to expandtargetDirectory - the directory to write toIOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonsCopyright © 2018 The Apache Software Foundation. All rights reserved.