| Modifier and Type | Field and Description |
|---|---|
| private static final int | BUFFER_SIZE
Buffer size used when reading |
| private boolean | initialized
Have the parameters passed been interpreted? |
| private Project | project
The Ant project this filter is part of. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BaseFilterReader(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 |
|---|---|
| protected final boolean | |
| protected final Project | |
| public final int | Returns: the number of characters read, or -1 if the end of the stream has been reachedDestination buffer to write characters to.
Must not be cbuf, final int null.Offset at which to start storing characters. off, final int Maximum number of characters to read. len)Overrides java. |
| protected final String | Returns: the remaining contents of the reader, as a StringReads to the end of the stream, returning the contents as a String. |
| protected final String | Returns: the line read, ornull if the end of the stream
has already been reachedReads a line of text ending with '\n' (or until the end of the stream). |
| protected final void | setInitialized(final boolean
Whether or not the filter is initialized. initialized)Sets the initialized status. |
| public final void | setProject(final Project
The project this filter is part of.
Should not be project)null.Sets the project to work with. |
| public final long | Returns: the number of characters actually skippedThe number of characters to skip n)Overrides java. |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE Buffer size used when reading | |
| initialized | back to summary |
|---|---|
| private boolean initialized Have the parameters passed been interpreted? | |
| project | back to summary |
|---|---|
| private Project project The Ant project this filter is part of. | |
| BaseFilterReader | back to summary |
|---|---|
| public BaseFilterReader() Constructor used by Ant's introspection mechanism. The original filter reader is only used for chaining purposes, never for filtering purposes (and indeed it would be useless for filtering purposes, as it has no real data to filter). ChainedReaderHelper uses this placeholder instance to create a chain of real filters. | |
| BaseFilterReader | back to summary |
|---|---|
| public BaseFilterReader(final Reader in) Creates a new filtered reader.
| |
| getInitialized | back to summary |
|---|---|
| protected final boolean getInitialized() Returns the initialized status.
| |
| getProject | back to summary |
|---|---|
| protected final Project getProject() Returns the project this filter is part of.
| |
| read | back to summary |
|---|---|
| public final int read(final char[] cbuf, final int off, final int len) throws IOException Overrides java. Reads characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached.
| |
| readFully | back to summary |
|---|---|
| protected final String readFully() throws IOException Reads to the end of the stream, returning the contents as a String.
| |
| readLine | back to summary |
|---|---|
| protected final String readLine() throws IOException Reads a line of text ending with '\n' (or until the end of the stream). The returned String retains the '\n'.
| |
| setInitialized | back to summary |
|---|---|
| protected final void setInitialized(final boolean initialized) Sets the initialized status.
| |
| setProject | back to summary |
|---|---|
| public final void setProject(final Project project) Sets the project to work with.
| |
| skip | back to summary |
|---|---|
| public final long skip(final long n) throws IOException, IllegalArgumentException Overrides java. Skips characters. This method will block until some characters are available, an I/O error occurs, or the end of the stream is reached.
| |