public class StandardSeparatorHandler extends java.lang.Object implements SeparatorHandler
Simple implementation of the SeparatorHandler interface. This class
works only with the TokenizerProperties interface
methods and is aware of changes in these properties. It does not cache any
information and is therefore a more or less slow way to handle separators.
This class is a bridge between arbitrary Tokenizer
implementations using the SPI interface SeparatorHandler and any
TokenizerProperties implementation that does not
implement the SeparatorHandler interface itself.
SeparatorHandler,
Tokenizer,
TokenizerProperties| Constructor and Description |
|---|
StandardSeparatorHandler(TokenizerProperties props)
The constructor takes the
TokenizerProperties
that provide the separators. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSeparator(char testChar)
This method checks if the character is a separator.
|
public StandardSeparatorHandler(TokenizerProperties props)
TokenizerProperties
that provide the separators.props - the TokenizerProperties to take the
separators frompublic boolean isSeparator(char testChar)
isSeparator in interface SeparatorHandlertestChar - check this charactertrue if the given character is a separator,
false otherwiseTokenizerProperties.setSeparators(java.lang.String)