The interface TokenizerPropertyListener is implemented by classes
that are interested in changes in
TokenizerProperties objects. Such
changes are adding, removing and modifying of properties like keywords, special
sequences etc. or parse flags.
Usually, a
Tokenizer implementation will also implement this interface.
An example is
StandardTokenizer . With the listener design pattern,
a tokenizer can cache information for fast access that is originally held in
its associated TokenizerProperties object, without the danger of
using out-of-date data.
The method
TokenizerProperties.addTokenizerPropertyListener is used to
register a listener. De-registering is done via
TokenizerProperties.removeTokenizerPropertyListener . The whole mechanism
is therefore the same as the event listener schemes used in the AWT or the
Swing packages of the JDK.
See Also: TokenizerProperties See Also: Tokenizer See Also: TokenizerPropertyEvent author: Heiko Blau |