org.apache.tools.ant.filters

Class BaseParamFilterReader

Implemented Interfaces:
Parameterizable
Known Direct Subclasses:
ConcatFilter, EscapeUnicode, HeadFilter, LineContains, LineContainsRegExp, PrefixLines, ReplaceTokens, StripLineBreaks, StripLineComments, TabsToSpaces, TailFilter

public abstract class BaseParamFilterReader
extends BaseFilterReader
implements Parameterizable

Parameterized base class for core filter readers.

Constructor Summary

BaseParamFilterReader()
Constructor for "dummy" instances.
BaseParamFilterReader(Reader in)
Creates a new filtered reader.

Method Summary

protected Parameter[]
getParameters()
Returns the parameters to be used by this filter.
void
setParameters(Parameter[] parameters)
Sets the parameters used by this filter, and sets the filter to an uninitialized status.

Methods inherited from class org.apache.tools.ant.filters.BaseFilterReader

getInitialized, getProject, read, readFully, readLine, setInitialized, setProject, skip

Constructor Details

BaseParamFilterReader

public BaseParamFilterReader()
Constructor for "dummy" instances.

BaseParamFilterReader

public BaseParamFilterReader(Reader in)
Creates a new filtered reader.
Parameters:
in - A Reader object providing the underlying stream. Must not be null.

Method Details

getParameters

protected final Parameter[] getParameters()
Returns the parameters to be used by this filter.
Returns:
the parameters to be used by this filter

setParameters

public final void setParameters(Parameter[] parameters)
Sets the parameters used by this filter, and sets the filter to an uninitialized status.
Specified by:
setParameters in interface Parameterizable
Parameters:
parameters - The parameters to be used by this filter. Should not be null.

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.