|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.archiver.AbstractUnArchiver
public abstract class AbstractUnArchiver
Field Summary |
---|
Fields inherited from interface org.codehaus.plexus.archiver.UnArchiver |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractUnArchiver()
|
|
AbstractUnArchiver(java.io.File sourceFile)
|
Method Summary | |
---|---|
void |
addArchiveFinalizer(ArchiveFinalizer finalizer)
|
protected abstract void |
execute()
|
protected abstract void |
execute(java.lang.String path,
java.io.File outputDirectory)
|
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()
|
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. |
java.io.File |
getSourceFile()
|
protected boolean |
include(java.io.InputStream inputStream,
java.lang.String name)
|
boolean |
isIgnorePermissions()
|
boolean |
isOverwrite()
|
protected boolean |
isSelected(java.lang.String fileName,
org.codehaus.plexus.components.io.resources.PlexusIoResource fileInfo)
|
boolean |
isUseJvmChmod()
|
void |
setArchiveFilters(java.util.List filters)
|
void |
setArchiveFinalizers(java.util.List archiveFinalizers)
|
void |
setDestDirectory(java.io.File destDirectory)
|
void |
setDestFile(java.io.File destFile)
|
void |
setFileSelectors(org.codehaus.plexus.components.io.fileselectors.FileSelector[] fileSelectors)
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(java.io.File sourceFile)
|
void |
setUseJvmChmod(boolean useJvmChmod)
to use or not the jvm method for file permissions : user all not active for group permissions |
protected void |
validate()
|
protected void |
validate(java.lang.String path,
java.io.File outputDirectory)
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUnArchiver()
public AbstractUnArchiver(java.io.File sourceFile)
Method Detail |
---|
public java.io.File getDestDirectory()
getDestDirectory
in interface UnArchiver
public void setDestDirectory(java.io.File destDirectory)
setDestDirectory
in interface UnArchiver
public java.io.File getDestFile()
getDestFile
in interface UnArchiver
public void setDestFile(java.io.File destFile)
setDestFile
in interface UnArchiver
public java.io.File getSourceFile()
getSourceFile
in interface UnArchiver
public void setSourceFile(java.io.File sourceFile)
setSourceFile
in interface UnArchiver
public boolean isOverwrite()
public void setOverwrite(boolean b)
UnArchiver
setOverwrite
in interface UnArchiver
public final void extract() throws ArchiverException
UnArchiver
extract
in interface UnArchiver
ArchiverException
public final void extract(java.lang.String path, java.io.File outputDirectory) throws ArchiverException
UnArchiver
extract
in interface UnArchiver
path
- Path inside the archive to be extracted.outputDirectory
- Directory to extract to.
ArchiverException
public void setArchiveFilters(java.util.List filters)
setArchiveFilters
in interface FilterEnabled
public void addArchiveFinalizer(ArchiveFinalizer finalizer)
addArchiveFinalizer
in interface FinalizerEnabled
public void setArchiveFinalizers(java.util.List archiveFinalizers)
setArchiveFinalizers
in interface FinalizerEnabled
protected boolean include(java.io.InputStream inputStream, java.lang.String name) throws ArchiveFilterException
ArchiveFilterException
protected void validate(java.lang.String path, java.io.File outputDirectory)
protected void validate() throws ArchiverException
ArchiverException
public void setFileSelectors(org.codehaus.plexus.components.io.fileselectors.FileSelector[] fileSelectors)
UnArchiver
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.
setFileSelectors
in interface UnArchiver
public org.codehaus.plexus.components.io.fileselectors.FileSelector[] getFileSelectors()
UnArchiver
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
in interface UnArchiver
protected boolean isSelected(java.lang.String fileName, org.codehaus.plexus.components.io.resources.PlexusIoResource fileInfo) throws ArchiverException
ArchiverException
protected abstract void execute() throws ArchiverException
ArchiverException
protected abstract void execute(java.lang.String path, java.io.File outputDirectory) throws ArchiverException
ArchiverException
public boolean isUseJvmChmod()
isUseJvmChmod
in interface UnArchiver
public void setUseJvmChmod(boolean useJvmChmod)
UnArchiver
setUseJvmChmod
in interface UnArchiver
public boolean isIgnorePermissions()
isIgnorePermissions
in interface UnArchiver
public void setIgnorePermissions(boolean ignorePermissions)
setIgnorePermissions
in interface UnArchiver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |