public class Expander
extends java.lang.Object
Constructor and Description |
---|
Expander() |
Modifier and Type | Method and Description |
---|---|
void |
expand(ArchiveInputStream archive,
java.io.File targetDirectory)
Expands
archive into targetDirectory . |
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(SevenZFile 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(ZipFile archive,
java.io.File targetDirectory)
Expands
archive into targetDirectory . |
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"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"