BaseFilterReader, ChainableReader, org.apache.tools.ant.DynamicConfigurator
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | TokenFilter.ChainableReaderFilter
Abstract class that converts derived filter classes into ChainableReaderFilter's |
| public static class | TokenFilter.ContainsRegex
filter to filter tokens matching regular expressions. |
| public static class | TokenFilter.ContainsString
Simple filter to filter lines contains strings |
| public static class | TokenFilter.DeleteCharacters
Filter to delete characters |
| public static class | TokenFilter.FileTokenizer
class to read the complete input into a string |
| public static interface | TokenFilter.Filter
string filters implement this interface |
| public static class | TokenFilter.IgnoreBlank
Filter remove empty tokens |
| public static class | TokenFilter.ReplaceRegex
filter to replace regex. |
| public static class | TokenFilter.ReplaceString
Simple replace string filter. |
| public static class | TokenFilter.StringTokenizer
class to tokenize the input as areas separated by white space, or by a specified list of delim characters. |
| public static class | TokenFilter.Trim
Filter to trim white space |
| Modifier and Type | Field and Description |
|---|---|
| private String | delimOutput
the output token termination |
| private Vector | filters
string filters |
| private String | line
the current string token from the input stream |
| private int | linePos
the position in the current string token |
| private Tokenizer | tokenizer
the tokenizer to use on the input stream |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TokenFilter(final Reader
A Reader object providing the underlying stream.
Must not be in)null.Creates a new filtered reader. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | addContainsString(TokenFilter.
the contains string filter filtercontains string filter |
| public void | |
| public void | |
| public void | |
| public void | addLineTokenizer(LineTokenizer
the line tokenizer tokenizer)add a line tokenizer - this is the default. |
| public void | |
| public void | |
| public void | |
| public void | |
| public final Reader | Returns: a new filter based on this configurationA Reader object providing the underlying stream. reader)Implements org. |
| public static int | Returns: the Regexp option bitsthe string containing the flags flags)convert regex option flag characters to regex options
|
| public int | Returns: the next character in the resulting stream, or -1 if the end of the resulting stream has been reachedOverrides java. |
| public static String | Returns: converted stringraw string with possible embedded '\'s input)xml does not do "c" like interpretation of strings. |
| public void | setDelimOutput(String
replaces the delim string returned by the
tokenizer, if present. delimOutput)set the output delimiter. |