| org.apache.tools.ant.filters.BaseFilterReader org.apache.tools.ant.filters.BaseParamFilterReader org.apache.tools.ant.filters.ConcatFilter
ConcatFilter | final public class ConcatFilter extends BaseParamFilterReader implements ChainableReader(Code) | | Concats a file before and/or after the file.
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 |
Method Summary | |
public Reader | chain(Reader rdr) Creates a new ConcatReader using the passed in
Reader for instantiation.
Parameters: rdr - A Reader object providing the underlying stream.Must not be null . | public File | getAppend() Returns append attribute. | public File | getPrepend() Returns prepend attribute. | public int | read() Returns the next character in the filtered stream. | public void | setAppend(File append) Sets append attribute. | public void | setPrepend(File prepend) Sets prepend attribute. |
ConcatFilter | public ConcatFilter(Reader in)(Code) | | Creates a new filtered reader.
Parameters: in - A Reader object providing the underlying stream.Must not be null . |
chain | public Reader chain(Reader rdr)(Code) | | Creates a new ConcatReader using the passed in
Reader for instantiation.
Parameters: rdr - A Reader object providing the underlying stream.Must not be null . a new filter based on this configuration, but filteringthe specified reader |
getAppend | public File getAppend()(Code) | | Returns append attribute.
append attribute |
getPrepend | public File getPrepend()(Code) | | Returns prepend attribute.
prepend attribute |
read | public int read() throws IOException(Code) | | Returns the next character in the filtered stream. If the desired
number of lines have already been read, the resulting stream is
effectively at an end. Otherwise, the next character from the
underlying stream is read and returned.
the next character in the resulting stream, or -1if the end of the resulting stream has been reached exception: IOException - if the underlying stream throws an IOExceptionduring reading |
setAppend | public void setAppend(File append)(Code) | | Sets append attribute.
Parameters: append - new value |
setPrepend | public void setPrepend(File prepend)(Code) | | Sets prepend attribute.
Parameters: prepend - new value |
|
|