| org.apache.tools.ant.filters.BaseFilterReader org.apache.tools.ant.filters.ExpandProperties
ExpandProperties | final public class ExpandProperties extends BaseFilterReader implements ChainableReader(Code) | | Expands Ant properties, if any, in the data.
Example:
<expandproperties/>
Or:
<filterreader
classname="org.apache.tools.ant.filters.ExpandProperties"/>
|
Method Summary | |
public Reader | chain(Reader rdr) Creates a new ExpandProperties filter using the passed in
Reader for instantiation.
Parameters: rdr - A Reader object providing the underlying stream.Must not be null . | public int | read() Returns the next character in the filtered stream. |
ExpandProperties | public ExpandProperties(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 ExpandProperties filter 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 |
read | public int read() throws IOException(Code) | | Returns the next character in the filtered stream. The original
stream is first read in fully, and the Ant properties are expanded.
The results of this expansion are then queued so they can be read
character-by-character.
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 |
|
|