org.apache.tools.ant.taskdefs
Class Concat.TextElement
- Concat
public static class Concat.TextElement
sub element points to a file or contains text
void | addText(String value)- set the text using inline
|
String | getValue()
|
void | setEncoding(String encoding)- The encoding of the text element
|
void | setFile(File file)- set the text using a file
|
void | setFiltering(boolean filtering)- whether to filter the text in this element
or not.
|
void | setTrim(boolean trim)- whether to call text.trim()
|
void | setTrimLeading(boolean strip)- s:^\s*:: on each line of input
|
addText
public void addText(String value)
set the text using inline
value - the text to place inline
getValue
public String getValue()
- the text, after possible trimming
setEncoding
public void setEncoding(String encoding)
The encoding of the text element
encoding - the name of the charset used to encode
setFile
public void setFile(File file)
set the text using a file
setFiltering
public void setFiltering(boolean filtering)
whether to filter the text in this element
or not.
filtering - true if the text should be filtered.
the default value is true.
setTrim
public void setTrim(boolean trim)
whether to call text.trim()
trim - if true trim the text
setTrimLeading
public void setTrimLeading(boolean strip)
s:^\s*:: on each line of input
strip - if true do the trim
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.