Example:
<expandproperties/>Or:
<filterreader classname="org.apache.tools.ant.filters.ExpandProperties"/>
| Modifier and Type | Field and Description |
|---|---|
| private char[] | |
| private static final int | |
| private int | |
| private PropertySet |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ExpandProperties(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 void | |
| 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. |
| public int | Returns: the next character in the resulting stream, or -1 if the end of the resulting stream has been reachedOverrides java. |
| buffer | back to summary |
|---|---|
| private char[] buffer | |
| EOF | back to summary |
|---|---|
| private static final int EOF | |
| index | back to summary |
|---|---|
| private int index | |
| propertySet | back to summary |
|---|---|
| private PropertySet propertySet | |
| ExpandProperties | back to summary |
|---|---|
| public ExpandProperties() Constructor for "dummy" instances.
| |
| ExpandProperties | back to summary |
|---|---|
| public ExpandProperties(final Reader in) Creates a new filtered reader.
| |
| add | back to summary |
|---|---|
| public void add(PropertySet propertySet) Restrict the expanded properties using a PropertySet.
| |
| chain | back to summary |
|---|---|
| public Reader chain(final Reader rdr) Implements org. Creates a new ExpandProperties filter using the passed in Reader for instantiation. | |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. 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.
| |