public abstract class Tokenizer extends TokenStream
This is an abstract class.
NOTE: subclasses must override TokenStream.next(Token). It's
also OK to instead override TokenStream.next() but that
method is now deprecated in favor of TokenStream.next(Token).
NOTE: subclasses overriding TokenStream.next(Token) must
call Token.clear().
| Modifier and Type | Field and Description |
|---|---|
protected Reader |
input
The text source for this Tokenizer.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Tokenizer()
Construct a tokenizer with null input.
|
protected |
Tokenizer(Reader input)
Construct a token stream processing the given input.
|
protected Reader input
protected Tokenizer()
protected Tokenizer(Reader input)
public void close()
throws IOException
close in class TokenStreamIOExceptionpublic void reset(Reader input) throws IOException
IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.