PatternSets are used to select files to extract from the archive. If no patternset is used, all files are extracted.
FileSets may be used to select archived files to perform unarchival upon.
File permissions will not be restored on extracted files.
The untar task recognizes the long pathname entries used by GNU tar.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Untar.
Valid Modes for Compression attribute to Untar Task |
| Modifier and Type | Field and Description |
|---|---|
| private Untar. | compression
compression method |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | expandFile(FileUtils
the fileUtils fileUtils, File the source file srcF, File the destination directory dir)
This method is to be overridden by extending unarchival tasks.
|
| protected void | expandResource(Resource
the source resource srcR, File the destination directory dir)Overrides org. |
| private void | |
| public void | setCompression(Untar.
compression method methodSet decompression algorithm to use; default=none. |
| public void | setScanForUnicodeExtraFields(boolean
boolean b)Overrides org. |
| compression | back to summary |
|---|---|
| private Untar. compression method | |
| Untar | back to summary |
|---|---|
| public Untar() | |
| expandFile | back to summary |
|---|---|
| protected void expandFile(FileUtils fileUtils, File srcF, File dir) Overrides org. Doc from org. This method is to be overridden by extending unarchival tasks.
| |
| expandResource | back to summary |
|---|---|
| protected void expandResource(Resource srcR, File dir) Overrides org. This method is to be overridden by extending unarchival tasks. | |
| expandStream | back to summary |
|---|---|
private void expandStream(String name, InputStream stream, File dir) throws IOException
| |
| setCompression | back to summary |
|---|---|
| public void setCompression(Untar. Set decompression algorithm to use; default=none. Allowable values are
| |
| setScanForUnicodeExtraFields | back to summary |
|---|---|
| public void setScanForUnicodeExtraFields(boolean b) Overrides org. No unicode extra fields in tar.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | BZIP2
BZIP2 compression |
| private static final String | GZIP
GZIP compression |
| private static final String | NONE
No compression |
| private static final String | XZ
XZ compression |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | Returns: input stream with on-the-fly decompressionprovides location information for BuildException name, final InputStream input stream istream)This method wraps the input stream with the corresponding decompression method |
| public String[] | Returns: valid valuesImplements abstract org. |
| private static InputStream |
| BZIP2 | back to summary |
|---|---|
| private static final String BZIP2 BZIP2 compression | |
| GZIP | back to summary |
|---|---|
| private static final String GZIP GZIP compression | |
| NONE | back to summary |
|---|---|
| private static final String NONE No compression | |
| XZ | back to summary |
|---|---|
| private static final String XZ XZ compression
| |
| UntarCompressionMethod | back to summary |
|---|---|
| public UntarCompressionMethod() Constructor | |
| decompress | back to summary |
|---|---|
| public InputStream decompress(final String name, final InputStream istream) throws IOException, BuildException This method wraps the input stream with the corresponding decompression method
| |
| getValues | back to summary |
|---|---|
| public String[] getValues() Implements abstract org. Get valid enumeration values | |
| newXZInputStream | back to summary |
|---|---|
| private static InputStream newXZInputStream(InputStream istream) throws BuildException | |