org.apache.tools.ant.taskdefs.optional
Class Native2Ascii
- SelectorContainer
public class Native2Ascii
Converts files from native encodings to ASCII.
- Ant 1.2
void | add(FileNameMapper fileNameMapper) - A nested filenamemapper
|
ImplementationSpecificArgument | createArg() - Adds an implementation specific command-line argument.
|
Mapper | createMapper() - Defines the FileNameMapper to use (nested mapper element).
|
void | execute() - Execute the task
|
String[] | getCurrentArgs() - Returns the (implementation specific) settings given as nested
arg elements.
|
String | getEncoding() - The value of the reverse attribute.
|
boolean | getReverse() - The value of the reverse attribute.
|
void | setDest(File destDir) - Set the destination directory to place converted files into.
|
void | setEncoding(String encoding) - Set the encoding to translate to/from.
|
void | setExt(String ext) - Set the extension which converted files should have.
|
void | setImplementation(String impl) - Choose the implementation for this particular task.
|
void | setReverse(boolean reverse) - Flag the conversion to run in the reverse sense,
that is Ascii to Native encoding.
|
void | setSrc(File srcDir) - Set the source directory in which to find files to convert.
|
XsetIgnore , XsetItems , add , addAnd , addContains , addContainsRegexp , addCustom , addDate , addDepend , addDepth , addDifferent , addFilename , addMajority , addModified , addNone , addNot , addOr , addPresent , addSelector , addSize , addType , appendSelector , createExclude , createExcludesFile , createInclude , createIncludesFile , createPatternSet , getDirectoryScanner , getImplicitFileSet , getSelectors , hasSelectors , selectorCount , selectorElements , setCaseSensitive , setDefaultexcludes , setExcludes , setExcludesfile , setFollowSymlinks , setIncludes , setIncludesfile , setProject |
execute , getDescription , getLocation , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , maybeConfigure , perform , reconfigure , setDescription , setLocation , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
Native2Ascii
public Native2Ascii()
Sole constructor.
add
public void add(FileNameMapper fileNameMapper)
A nested filenamemapper
fileNameMapper
- the mapper to add
- Ant 1.6.3
createArg
public ImplementationSpecificArgument createArg()
Adds an implementation specific command-line argument.
- a ImplementationSpecificArgument to be configured
- Ant 1.6.3
createMapper
public Mapper createMapper()
throws BuildException
Defines the FileNameMapper to use (nested mapper element).
- the mapper to use for file name translations.
BuildException
- if more than one mapper is defined.
getCurrentArgs
public String[] getCurrentArgs()
Returns the (implementation specific) settings given as nested
arg elements.
- Ant 1.6.3
getEncoding
public String getEncoding()
The value of the reverse attribute.
- Ant 1.6.3
getReverse
public boolean getReverse()
The value of the reverse attribute.
- Ant 1.6.3
setDest
public void setDest(File destDir)
Set the destination directory to place converted files into.
destDir
- directory to place output file into.
setEncoding
public void setEncoding(String encoding)
Set the encoding to translate to/from.
If unset, the default encoding for the JVM is used.
encoding
- String containing the name of the Native
encoding to convert from or to.
setExt
public void setExt(String ext)
Set the extension which converted files should have.
If unset, files will not be renamed.
ext
- File extension to use for converted files.
setImplementation
public void setImplementation(String impl)
Choose the implementation for this particular task.
impl
- the name of the implemenation
- Ant 1.6.3
setReverse
public void setReverse(boolean reverse)
Flag the conversion to run in the reverse sense,
that is Ascii to Native encoding.
reverse
- True if the conversion is to be reversed,
otherwise false;
setSrc
public void setSrc(File srcDir)
Set the source directory in which to find files to convert.
srcDir
- directory to find input file in.
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.