org.codehaus.plexus.archiver
Interface UnArchiver

All Known Implementing Classes:
AbstractUnArchiver, AbstractZipUnArchiver, BZip2UnArchiver, GZipUnArchiver, TarBZip2UnArchiver, TarGZipUnArchiver, TarUnArchiver, ZipUnArchiver

public interface UnArchiver

Version:
$Revision$ $Date$

Field Summary
static String ROLE
           
 
Method Summary
 void extract()
          Extract the archive.
 void extract(String path, File outputDirectory)
          Take a patch into the archive and extract it to the specified directory.
 File getDestDirectory()
           
 File getDestFile()
           
 org.codehaus.plexus.components.io.fileselectors.FileSelector[] getFileSelectors()
          Returns a set of FileSelector instances, which may be used to select the files to extract from the archive.
 File getSourceFile()
           
 boolean isIgnorePermissions()
           
 boolean isUseJvmChmod()
           
 void setDestDirectory(File destDirectory)
           
 void setDestFile(File destFile)
           
 void setFileSelectors(org.codehaus.plexus.components.io.fileselectors.FileSelector[] selectors)
          Sets a set of FileSelector instances, which may be used to select the files to extract from the archive.
 void setIgnorePermissions(boolean ignorePermissions)
           
 void setOverwrite(boolean b)
          Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?
 void setSourceFile(File sourceFile)
           
 void setUseJvmChmod(boolean useJvmChmod)
          to use or not the jvm method for file permissions : user all not active for group permissions
 

Field Detail

ROLE

static final String ROLE
Method Detail

extract

void extract()
             throws ArchiverException
Extract the archive.

Throws:
ArchiverException

extract

void extract(String path,
             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

File getDestDirectory()

setDestDirectory

void setDestDirectory(File destDirectory)

getDestFile

File getDestFile()

setDestFile

void setDestFile(File destFile)

getSourceFile

File getSourceFile()

setSourceFile

void setSourceFile(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?


setFileSelectors

void setFileSelectors(org.codehaus.plexus.components.io.fileselectors.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.


getFileSelectors

org.codehaus.plexus.components.io.fileselectors.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.


setUseJvmChmod

void setUseJvmChmod(boolean useJvmChmod)
to use or not the jvm method for file permissions : user all not active for group permissions

Parameters:
useJvmChmod -
Since:
1.1

isUseJvmChmod

boolean isUseJvmChmod()
Returns:
Since:
1.1

isIgnorePermissions

boolean isIgnorePermissions()
Since:
1.1

setIgnorePermissions

void setIgnorePermissions(boolean ignorePermissions)
Since:
1.1


Copyright © 2008-2011 Sonatype, Inc.. All Rights Reserved.