public class Expander extends java.lang.Object
| Constructor | Description |
|---|---|
Expander() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
expand(java.io.File archive,
java.io.File targetDirectory) |
Expands
archive into targetDirectory. |
void |
expand(java.io.InputStream archive,
java.io.File targetDirectory) |
Expands
archive into targetDirectory. |
void |
expand(java.lang.String format,
java.io.File archive,
java.io.File targetDirectory) |
Expands
archive into targetDirectory. |
void |
expand(java.lang.String format,
java.io.InputStream archive,
java.io.File targetDirectory) |
Expands
archive into targetDirectory. |
void |
expand(java.lang.String format,
java.nio.channels.SeekableByteChannel archive,
java.io.File targetDirectory) |
Expands
archive into targetDirectory. |
void |
expand(ArchiveInputStream archive,
java.io.File targetDirectory) |
Expands
archive into targetDirectory. |
void |
expand(SevenZFile archive,
java.io.File targetDirectory) |
Expands
archive into targetDirectory. |
void |
expand(ZipFile archive,
java.io.File targetDirectory) |
Expands
archive into targetDirectory. |
public Expander()
public void expand(java.io.File archive, java.io.File targetDirectory) throws java.io.IOException, ArchiveException
archive into targetDirectory.
Tries to auto-detect the archive's format.
archive - the file to expandtargetDirectory - the directory to write tojava.io.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(java.lang.String format, java.io.File archive, java.io.File targetDirectory) throws java.io.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.java.io.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(java.io.InputStream archive, java.io.File targetDirectory) throws java.io.IOException, ArchiveException
archive into targetDirectory.
Tries to auto-detect the archive's format.
archive - the file to expandtargetDirectory - the directory to write tojava.io.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(java.lang.String format, java.io.InputStream archive, java.io.File targetDirectory) throws java.io.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.java.io.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(java.lang.String format, java.nio.channels.SeekableByteChannel archive, java.io.File targetDirectory) throws java.io.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.java.io.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(ArchiveInputStream archive, java.io.File targetDirectory) throws java.io.IOException, ArchiveException
archive into targetDirectory.archive - the file to expandtargetDirectory - the directory to write tojava.io.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(ZipFile archive, java.io.File targetDirectory) throws java.io.IOException, ArchiveException
archive into targetDirectory.archive - the file to expandtargetDirectory - the directory to write tojava.io.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasonspublic void expand(SevenZFile archive, java.io.File targetDirectory) throws java.io.IOException, ArchiveException
archive into targetDirectory.archive - the file to expandtargetDirectory - the directory to write tojava.io.IOException - if an I/O error occursArchiveException - if the archive cannot be read for other reasons