Package org.codehaus.plexus.archiver.tar
Class TarUnArchiver
java.lang.Object
org.codehaus.plexus.archiver.AbstractUnArchiver
org.codehaus.plexus.archiver.tar.TarUnArchiver
- All Implemented Interfaces:
FinalizerEnabled
,UnArchiver
- Direct Known Subclasses:
TarBZip2UnArchiver
,TarGZipUnArchiver
,TarSnappyUnArchiver
,TarXZUnArchiver
,TarZstdUnArchiver
- Author:
- Emmanuel Venisse
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Valid Modes for Compression attribute to Untar Task -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
execute()
protected void
execute
(File sourceFile, File destDirectory, org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers) protected void
void
Set decompression algorithm to use; default=none.void
setEncoding
(String encoding) No encoding support in Untar.Methods inherited from class org.codehaus.plexus.archiver.AbstractUnArchiver
addArchiveFinalizer, extract, extract, extractFile, getDestDirectory, getDestFile, getFileMappers, getFileSelectors, getLogger, getSourceFile, isIgnorePermissions, isOverwrite, isSelected, isUseJvmChmod, setArchiveFinalizers, setDestDirectory, setDestFile, setFileMappers, setFileSelectors, setIgnorePermissions, setOverwrite, setSourceFile, setUseJvmChmod, shouldExtractEntry, validate, validate
-
Constructor Details
-
TarUnArchiver
public TarUnArchiver() -
TarUnArchiver
-
-
Method Details
-
setCompression
Set decompression algorithm to use; default=none.Allowable values are
- none - no compression
- gzip - Gzip compression
- bzip2 - Bzip2 compression
- snappy - Snappy compression
- xz - Xz compression
- Parameters:
method
- compression method
-
setEncoding
No encoding support in Untar. -
execute
- Specified by:
execute
in classAbstractUnArchiver
- Throws:
ArchiverException
-
execute
- Specified by:
execute
in classAbstractUnArchiver
-
execute
protected void execute(File sourceFile, File destDirectory, org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers) throws ArchiverException - Throws:
ArchiverException
-