org.apache.tools.ant.filters

Class TokenFilter.DeleteCharacters

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

Filter to delete characters
Method Summary
Readerchain(Reader reader)
factory method to provide a reader that removes the characters from a reader as part of a filter chain
Stringfilter(String string)
remove characters from a string
voidsetChars(String deleteChars)
Set the list of characters to delete

Method Detail

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

Parameters: reader the reader object

Returns: the chained reader object

filter

public String filter(String string)
remove characters from a string

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