| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| private String | |
| private String | |
| private FacadeTaskHelper | |
| private Mapper | |
| private Native2AsciiAdapter | |
| private boolean | |
| private File |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private void | |
| public ImplementationSpecificArgument | Returns: a ImplementationSpecificArgument to be configuredAdds an implementation specific command-line argument. |
| public Path | Returns: PathThe classpath to use when loading the native2ascii implementation if it is not a built-in one. |
| public Mapper | Returns: the mapper to use for file name translations.Defines the FileNameMapper to use (nested mapper element). |
| public void | |
| public String[] | Returns: the arguments.Returns the (implementation specific) settings given as nested arg elements. |
| public String | |
| public boolean | |
| public void | |
| public void | setEncoding(String
String containing the name of the Native
encoding to convert from or to. encoding)Set the encoding to translate to/from. |
| public void | |
| public void | setImplementation(String
the name of the implementation impl)Choose the implementation for this particular task. |
| public void | setReverse(boolean
True if the conversion is to be reversed,
otherwise false; reverse)Flag the conversion to run in the reverse sense, that is Ascii to Native encoding. |
| public void |
| destDir | back to summary |
|---|---|
| private File destDir | |
| encoding | back to summary |
|---|---|
| private String encoding | |
| extension | back to summary |
|---|---|
| private String extension | |
| facade | back to summary |
|---|---|
| private FacadeTaskHelper facade | |
| mapper | back to summary |
|---|---|
| private Mapper mapper | |
| nestedAdapter | back to summary |
|---|---|
| private Native2AsciiAdapter nestedAdapter | |
| reverse | back to summary |
|---|---|
| private boolean reverse | |
| srcDir | back to summary |
|---|---|
| private File srcDir | |
| Native2Ascii | back to summary |
|---|---|
| public Native2Ascii() No args constructor | |
| add | back to summary |
|---|---|
| public void add(FileNameMapper fileNameMapper) A nested filenamemapper
| |
| add | back to summary |
|---|---|
| public void add(Native2AsciiAdapter adapter) Set the adapter explicitly.
| |
| convert | back to summary |
|---|---|
| private void convert(String srcName, String destName) throws BuildException Convert a single file. | |
| createArg | back to summary |
|---|---|
| public ImplementationSpecificArgument createArg() Adds an implementation specific command-line argument.
| |
| createImplementationClasspath | back to summary |
|---|---|
| public Path createImplementationClasspath() The classpath to use when loading the native2ascii implementation if it is not a built-in one.
| |
| createMapper | back to summary |
|---|---|
| public Mapper createMapper() throws BuildException Defines the FileNameMapper to use (nested mapper element).
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Execute the task
| |
| getCurrentArgs | back to summary |
|---|---|
| public String[] getCurrentArgs() Returns the (implementation specific) settings given as nested arg elements.
| |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() The value of the encoding attribute.
| |
| getReverse | back to summary |
|---|---|
| public boolean getReverse() The value of the reverse attribute.
| |
| setDest | back to summary |
|---|---|
| public void setDest(File destDir) Set the destination directory to place converted files into.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) Set the encoding to translate to/from. If unset, the default encoding for the JVM is used.
| |
| setExt | back to summary |
|---|---|
| public void setExt(String ext) Set the extension which converted files should have. If unset, files will not be renamed.
| |
| setImplementation | back to summary |
|---|---|
| public void setImplementation(String impl) Choose the implementation for this particular task.
| |
| setReverse | back to summary |
|---|---|
| public void setReverse(boolean reverse) Flag the conversion to run in the reverse sense, that is Ascii to Native encoding.
| |
| setSrc | back to summary |
|---|---|
| public void setSrc(File srcDir) Set the source directory in which to find files to convert.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | mapFileName(String
the name of the source file relative to
some given basedirectory. Might be fileName)null for resources that don't provide a
name.Implements org. |
| public void | setFrom(String
a string. s)Implements org. |
| public void | setTo(String
a string. s)Implements org. |
| ExtMapper | back to summary |
|---|---|
| private ExtMapper() | |
| mapFileName | back to summary |
|---|---|
| public String[] mapFileName(String fileName) Implements org. Doc from org. Returns an array containing the target filename(s) for the given source file. if the given rule doesn't apply to the source file, implementation must return null. SourceFileScanner will then omit the source file in question. | |
| setFrom | back to summary |
|---|---|
| public void setFrom(String s) Implements org. Doc from org. Sets the from part of the transformation rule. | |
| setTo | back to summary |
|---|---|
| public void setTo(String s) Implements org. Doc from org. Sets the to part of the transformation rule. | |