org.apache.tools.ant.filters
public final class ConcatFilter extends BaseParamFilterReader implements ChainableReader
Example:
Copies all java sources from src to build and adds the content of apache-license-java.txt add the beginning of each file.
Since: 1.6
Version: 2003-09-23
Constructor Summary | |
---|---|
ConcatFilter()
Constructor for "dummy" instances.
| |
ConcatFilter(Reader in)
Creates a new filtered reader.
|
Method Summary | |
---|---|
Reader | chain(Reader rdr)
Creates a new ConcatReader using the passed in
Reader for instantiation.
|
File | getAppend()
Returns append attribute. |
File | getPrepend()
Returns prepend attribute. |
int | read()
Returns the next character in the filtered stream. |
void | setAppend(File append)
Sets append attribute. |
void | setPrepend(File prepend)
Sets prepend attribute. |
See Also: BaseFilterReader
Parameters: in A Reader object providing the underlying stream.
Must not be null
.
Parameters: rdr A Reader object providing the underlying stream.
Must not be null
.
Returns: a new filter based on this configuration, but filtering the specified reader
Returns: append attribute
Returns: prepend attribute
Returns: the next character in the resulting stream, or -1 if the end of the resulting stream has been reached
Throws: IOException if the underlying stream throws an IOException during reading
Parameters: append new value
Parameters: prepend new value