<suffixlines suffix="Foo"/>Or:
<filterreader classname="org.apache.tools.ant.filters.SuffixLines"> <param name="suffix" value="Foo"/> </filterreader>
Modifier and Type | Field and Description |
---|---|
private String | queuedData
Data that must be read from, if not null. |
private String | suffix
The suffix to be used. |
private static final String | SUFFIX_KEY
Parameter name for the prefix. |
Access | Constructor and Description |
---|---|
public | |
public | SuffixLines(final Reader
A Reader object providing the underlying stream.
Must not be in)null .Creates a new filtered reader. |
Modifier and Type | Method and Description |
---|---|
public Reader | Returns: a new filter based on this configuration, but filtering the specified readerA Reader object providing the underlying stream.
Must not be rdr)null .Implements org. |
private String | Returns: the suffix which will be added at the end of each input lineReturns the suffix which will be added at the end of each input line. |
private void | |
public int | Returns: the next character in the resulting stream, or -1 if the end of the resulting stream has been reachedOverrides java. |
public void |
queuedData | back to summary |
---|---|
private String queuedData Data that must be read from, if not null. |
suffix | back to summary |
---|---|
private String suffix The suffix to be used. |
SUFFIX_KEY | back to summary |
---|---|
private static final String SUFFIX_KEY Parameter name for the prefix. |
SuffixLines | back to summary |
---|---|
public SuffixLines() Constructor for "dummy" instances.
|
SuffixLines | back to summary |
---|---|
public SuffixLines(final Reader in) Creates a new filtered reader.
|
chain | back to summary |
---|---|
public Reader chain(final Reader rdr) Implements org. Creates a new SuffixLines filter using the passed in Reader for instantiation. |
getSuffix | back to summary |
---|---|
private String getSuffix() Returns the suffix which will be added at the end of each input line.
|
initialize | back to summary |
---|---|
private void initialize() Initializes the suffix if it is available from the parameters. |
read | back to summary |
---|---|
public int read() throws IOException Overrides java. Returns the next character in the filtered stream. One line is read from the original input, and the suffix added. The resulting line is then used until it ends, at which point the next original line is read, etc.
|
setSuffix | back to summary |
---|---|
public void setSuffix(final String suffix) Sets the suffix to add at the end of each input line.
|