| Modifier and Type | Field and Description |
|---|---|
| private Boolean | |
| private static final int | |
| private File | |
| private String | |
| public static final String | ERROR_MULTIPLE_MAPPERS
Error message when more that one mapper is defined |
| private boolean | |
| private static final FileUtils | |
| private Mapper | |
| public static final String | |
| private boolean | |
| private List | |
| private Union | |
| private boolean | |
| private boolean | |
| private File | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public Mapper | Returns: a mapper to be configuredDefines the mapper to map source entries to destination files. |
| public void | |
| 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)This method is to be overridden by extending unarchival tasks. |
| protected void | extractFile(FileUtils
a fileUtils object fileUtils, File the source file srcF, File the destination directory dir, InputStream the input stream compressedInputStream, String the name of the entry entryName, Date the date of the entry entryDate, boolean if this is true the entry is a directory isDirectory, FileNameMapper the filename mapper to use mapper)extract a file to a directory |
| public Boolean | Returns: null if the flag hasn't been set explicitly,
otherwise the value set by the user.Whether to allow the extracted file or directory to be outside of the dest directory. |
| public String | |
| public boolean | Returns: booleanWhether try ing to expand an empty archive would be an error. |
| protected FileNameMapper | |
| public boolean | |
| protected void | internalSetEncoding(String
String encoding)Supports grand-children that want to support the attribute where the child-class doesn't (i.e. Unzip in the compress Antlib). |
| protected void | internalSetScanForUnicodeExtraFields(boolean
boolean b)Supports grand-children that want to support the attribute where the child-class doesn't (i.e. Unzip in the compress Antlib). |
| public void | setAllowFilesToEscapeDest(boolean
the flag b)Whether to allow the extracted file or directory to be outside of the dest directory. |
| public void | |
| public void | setEncoding(String
the name of the character encoding encoding)Sets the encoding to assume for file names and comments. |
| public void | setFailOnEmptyArchive(boolean
boolean b)Whether try ing to expand an empty archive would be an error. |
| public void | setOverwrite(boolean
a b)boolean valueShould we overwrite files in dest, even if they are newer than the corresponding entries in the archive? |
| public void | |
| public void | |
| public void |
| allowFilesToEscapeDest | back to summary |
|---|---|
| private Boolean allowFilesToEscapeDest | |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE | |
| dest | back to summary |
|---|---|
| private File dest | |
| encoding | back to summary |
|---|---|
| private String encoding | |
| ERROR_MULTIPLE_MAPPERS | back to summary |
|---|---|
| public static final String ERROR_MULTIPLE_MAPPERS Error message when more that one mapper is defined | |
| failOnEmptyArchive | back to summary |
|---|---|
| private boolean failOnEmptyArchive | |
| FILE_UTILS | back to summary |
|---|---|
| private static final FileUtils FILE_UTILS | |
| mapperElement | back to summary |
|---|---|
| private Mapper mapperElement | |
| NATIVE_ENCODING | back to summary |
|---|---|
| public static final String NATIVE_ENCODING | |
| overwrite | back to summary |
|---|---|
| private boolean overwrite | |
| patternsets | back to summary |
|---|---|
| private List<PatternSet> patternsets | |
| resources | back to summary |
|---|---|
| private Union resources | |
| resourcesSpecified | back to summary |
|---|---|
| private boolean resourcesSpecified | |
| scanForUnicodeExtraFields | back to summary |
|---|---|
| private boolean scanForUnicodeExtraFields | |
| source | back to summary |
|---|---|
| private File source | |
| stripAbsolutePathSpec | back to summary |
|---|---|
| private boolean stripAbsolutePathSpec | |
| Expand | back to summary |
|---|---|
| public Expand() Creates an Expand instance and sets encoding to UTF-8. | |
| Expand | back to summary |
|---|---|
| protected Expand(String encoding) Creates an Expand instance and sets the given encoding.
| |
| add | back to summary |
|---|---|
| public void add(ResourceCollection rc) Add a resource collection.
| |
| add | back to summary |
|---|---|
| public void add(FileNameMapper fileNameMapper) A nested filenamemapper
| |
| addFileset | back to summary |
|---|---|
| public void addFileset(FileSet set) Add a fileset
| |
| addPatternset | back to summary |
|---|---|
| public void addPatternset(PatternSet set) Add a patternset.
| |
| createMapper | back to summary |
|---|---|
| public Mapper createMapper() throws BuildException Defines the mapper to map source entries to destination files.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Do the work.
| |
| expandFile | back to summary |
|---|---|
| protected void expandFile(FileUtils fileUtils, File srcF, File dir) This method is to be overridden by extending unarchival tasks. | |
| expandResource | back to summary |
|---|---|
| protected void expandResource(Resource srcR, File dir) This method is to be overridden by extending unarchival tasks. | |
| extractFile | back to summary |
|---|---|
| protected void extractFile(FileUtils fileUtils, File srcF, File dir, InputStream compressedInputStream, String entryName, Date entryDate, boolean isDirectory, FileNameMapper mapper) throws IOException extract a file to a directory
| |
| getAllowFilesToEscapeDest | back to summary |
|---|---|
| public Boolean getAllowFilesToEscapeDest() Whether to allow the extracted file or directory to be outside of the dest directory.
| |
| getEncoding | back to summary |
|---|---|
public String getEncoding()
| |
| getFailOnEmptyArchive | back to summary |
|---|---|
| public boolean getFailOnEmptyArchive() Whether try ing to expand an empty archive would be an error.
| |
| getMapper | back to summary |
|---|---|
| protected FileNameMapper getMapper() get a mapper for a file
| |
| getScanForUnicodeExtraFields | back to summary |
|---|---|
public boolean getScanForUnicodeExtraFields()
| |
| internalSetEncoding | back to summary |
|---|---|
| protected void internalSetEncoding(String encoding) Supports grand-children that want to support the attribute where the child-class doesn't (i.e. Unzip in the compress Antlib).
| |
| internalSetScanForUnicodeExtraFields | back to summary |
|---|---|
| protected void internalSetScanForUnicodeExtraFields(boolean b) Supports grand-children that want to support the attribute where the child-class doesn't (i.e. Unzip in the compress Antlib).
| |
| setAllowFilesToEscapeDest | back to summary |
|---|---|
| public void setAllowFilesToEscapeDest(boolean b) Whether to allow the extracted file or directory to be outside of the dest directory.
| |
| setDest | back to summary |
|---|---|
| public void setDest(File d) Set the destination directory. File will be unzipped into the destination directory.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) Sets the encoding to assume for file names and comments. Set to
| |
| setFailOnEmptyArchive | back to summary |
|---|---|
| public void setFailOnEmptyArchive(boolean b) Whether try ing to expand an empty archive would be an error.
| |
| setOverwrite | back to summary |
|---|---|
| public void setOverwrite(boolean b) Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?
| |
| setScanForUnicodeExtraFields | back to summary |
|---|---|
| public void setScanForUnicodeExtraFields(boolean b) Whether unicode extra fields will be used if present.
| |
| setSrc | back to summary |
|---|---|
| public void setSrc(File s) Set the path to zip-file.
| |
| setStripAbsolutePathSpec | back to summary |
|---|---|
| public void setStripAbsolutePathSpec(boolean b) Whether leading path separators should be stripped.
| |