org.apache.tools.ant.filters

Class TokenFilter.Trim

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

public static class TokenFilter.Trim
extends TokenFilter.ChainableReaderFilter

Filter to trim white space

Field Summary

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

description, location, project

Method Summary

String
filter(String line)

Methods inherited from class org.apache.tools.ant.filters.TokenFilter.ChainableReaderFilter

chain, setByLine

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

clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

Method Details

filter

public String filter(String line)
Specified by:
filter in interface TokenFilter.Filter
Parameters:
line - the string to be trimmed
Returns:
the trimmed string