org.apache.tools.ant.filters

Class TokenFilter.DeleteCharacters

Enclosing Class:
TokenFilter
Implemented Interfaces:
ChainableReader, TokenFilter.Filter

public static class TokenFilter.DeleteCharacters
extends ProjectComponent
implements TokenFilter.Filter, ChainableReader

Filter to delete characters

Field Summary

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

Reader
chain(Reader reader)
factory method to provide a reader that removes the characters from a reader as part of a filter chain
String
filter(String string)
remove characters from a string
void
setChars(String deleteChars)
Set the list of characters to delete

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Method Details

chain

public Reader chain(Reader reader)
factory method to provide a reader that removes the characters from a reader as part of a filter chain
Specified by:
chain in interface ChainableReader
Parameters:
reader - the reader object
Returns:
the chained reader object

filter

public String filter(String string)
remove characters from a string
Specified by:
filter in interface TokenFilter.Filter
Parameters:
string - the string to remove the characters from
Returns:
the converted string

setChars

public void setChars(String deleteChars)
Set the list of characters to delete
Parameters:
deleteChars - the list of characters

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