org.codehaus.plexus.archiver
Interface UnArchiver
- All Known Implementing Classes:
- AbstractUnArchiver, AbstractZipUnArchiver, BZip2UnArchiver, GZipUnArchiver, TarBZip2UnArchiver, TarGZipUnArchiver, TarUnArchiver, ZipUnArchiver
public interface UnArchiver
- Version:
- $Revision: 4431 $ $Date: 2006-10-12 16:29:01 +0100 (Thu, 12 Oct 2006) $
Field Summary |
static java.lang.String |
ROLE
|
Method Summary |
void |
extract()
Extract the archive. |
void |
extract(java.lang.String path,
java.io.File outputDirectory)
Take a patch into the archive and extract it to the specified directory. |
java.io.File |
getDestDirectory()
|
java.io.File |
getDestFile()
|
java.io.File |
getSourceFile()
|
void |
setDestDirectory(java.io.File destDirectory)
|
void |
setDestFile(java.io.File destFile)
|
void |
setOverwrite(boolean b)
Should we overwrite files in dest, even if they are newer than
the corresponding entries in the archive? |
void |
setSourceFile(java.io.File sourceFile)
|
ROLE
static final java.lang.String ROLE
extract
void extract()
throws ArchiverException
- Extract the archive.
- Throws:
ArchiverException
extract
void extract(java.lang.String path,
java.io.File outputDirectory)
throws ArchiverException
- Take a patch into the archive and extract it to the specified directory.
- Parameters:
path
- Path inside the archive to be extracted.outputDirectory
- Directory to extract to.
- Throws:
ArchiverException
getDestDirectory
java.io.File getDestDirectory()
setDestDirectory
void setDestDirectory(java.io.File destDirectory)
getDestFile
java.io.File getDestFile()
setDestFile
void setDestFile(java.io.File destFile)
getSourceFile
java.io.File getSourceFile()
setSourceFile
void setSourceFile(java.io.File sourceFile)
setOverwrite
void setOverwrite(boolean b)
- Should we overwrite files in dest, even if they are newer than
the corresponding entries in the archive?
Copyright © 2001-2006 Codehaus. All Rights Reserved.