org.codehaus.plexus.archiver

Interface UnArchiver

public interface UnArchiver

Version: $Revision: 6257 $ $Date: 2007-04-01 23:58:14 +0300 (Sun, 01 Apr 2007) $

Field Summary
StringROLE
Method Summary
voidextract()
Extract the archive.
voidextract(String path, File outputDirectory)
Take a patch into the archive and extract it to the specified directory.
FilegetDestDirectory()
FilegetDestFile()
FileSelector[]getFileSelectors()
Returns a set of FileSelector instances, which may be used to select the files to extract from the archive.
FilegetSourceFile()
voidsetDestDirectory(File destDirectory)
voidsetDestFile(File destFile)
voidsetFileSelectors(FileSelector[] selectors)
Sets a set of FileSelector instances, which may be used to select the files to extract from the archive.
voidsetOverwrite(boolean b)
Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?
voidsetSourceFile(File sourceFile)

Field Detail

ROLE

public String ROLE

Method Detail

extract

public void extract()
Extract the archive.

Throws: ArchiverException

extract

public void extract(String path, File outputDirectory)
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

public File getDestDirectory()

getDestFile

public File getDestFile()

getFileSelectors

public FileSelector[] getFileSelectors()
Returns a set of FileSelector instances, which may be used to select the files to extract from the archive. If file selectors are present, then a file is only extracted, if it is confirmed by all file selectors.

getSourceFile

public File getSourceFile()

setDestDirectory

public void setDestDirectory(File destDirectory)

setDestFile

public void setDestFile(File destFile)

setFileSelectors

public void setFileSelectors(FileSelector[] selectors)
Sets a set of FileSelector instances, which may be used to select the files to extract from the archive. If file selectors are present, then a file is only extracted, if it is confirmed by all file selectors.

setOverwrite

public void setOverwrite(boolean b)
Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?

setSourceFile

public void setSourceFile(File sourceFile)
Copyright © 2001-2009 Codehaus. All Rights Reserved.