Class TokenFilter.ChainableReaderFilter
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.filters.TokenFilter.ChainableReaderFilter
- All Implemented Interfaces:
Cloneable, ChainableReader, TokenFilter.Filter
- Direct Known Subclasses:
Native2AsciiFilter, ScriptFilter, TokenFilter.ContainsRegex, TokenFilter.IgnoreBlank, TokenFilter.ReplaceRegex, TokenFilter.ReplaceString, TokenFilter.Trim, UniqFilter
- Enclosing class:
TokenFilter
public abstract static class TokenFilter.ChainableReaderFilter
extends ProjectComponent
implements ChainableReader, TokenFilter.Filter
Abstract class that converts derived filter classes into
ChainableReaderFilter's
- Since:
- Ant 1.6
-
Field Summary
Fields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectModifier and TypeMethodDescriptionclone()Returns the description of the current action.Returns the file/location where this task was defined.Returns the project to which this component belongs.voidLogs a message with the default (INFO) priority.voidLogs a message with the given priority.voidsetDescription(String desc) Sets a description of the current action.voidsetLocation(Location location) Sets the file/location where this task was defined.voidsetProject(Project project) Sets the project object of this component.Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TokenFilter.Filter
filter
-
Constructor Details
-
ChainableReaderFilter
public ChainableReaderFilter()
-
-
Method Details
-
setByLine
public void setByLine(boolean byLine) set whether to use filetokenizer or line tokenizer- Parameters:
byLine- if true use a linetokenizer (default) otherwise use a filetokenizer
-
chain
Chain a tokenfilter reader to a reader,- Specified by:
chainin interfaceChainableReader- Parameters:
reader- the input reader object- Returns:
- the chained reader object
-