key1=value1(line separator)key2=value2
format.
Notes:
new whatever()
Example:
<classconstants/>Or:
<filterreader
classname="org.apache.tools.ant.filters.ClassConstants"/>
| Modifier and Type | Field and Description |
|---|---|
| private static final String | JAVA_CLASS_HELPER
Helper Class to be invoked via reflection. |
| private String | queuedData
Data that must be read from, if not null. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ClassConstants(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. |
| public int | Returns: the next character in the list of constants, or -1 if the end of the resulting stream has been reachedOverrides java. |
| JAVA_CLASS_HELPER | back to summary |
|---|---|
| private static final String JAVA_CLASS_HELPER Helper Class to be invoked via reflection. | |
| queuedData | back to summary |
|---|---|
| private String queuedData Data that must be read from, if not null. | |
| ClassConstants | back to summary |
|---|---|
| public ClassConstants() Constructor for "dummy" instances.
| |
| ClassConstants | back to summary |
|---|---|
| public ClassConstants(final Reader in) Creates a new filtered reader. The contents of the passed-in reader are expected to be the name of the class from which to produce a list of constants.
| |
| chain | back to summary |
|---|---|
| public Reader chain(final Reader rdr) Implements org. Creates a new ClassConstants using the passed in Reader for instantiation. | |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Reads and assembles the constants declared in a class file.
| |