public class CheckingTokenStream
extends TokenStream
| Modifier and Type | Field and Description |
|---|---|
private static String |
ACRONYM_TYPE
Token type for acronyms
|
private static String |
APOSTROPHE_TYPE
Token type for words containing apostrophes
|
(package private) TokenStream |
main
Main token stream that is being checked
|
(package private) TokenStream |
ref
Reference stream to check the main one against
|
| Constructor and Description |
|---|
CheckingTokenStream(TokenStream main,
TokenStream ref)
Construct a CheckingTokenStream
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the token stream
|
private String |
idType(String type)
Map the type to apostrophe, acronym, or other
|
Token |
next()
Get the next token from the main stream.
|
TokenStream main
TokenStream ref
private static final String APOSTROPHE_TYPE
private static final String ACRONYM_TYPE
public CheckingTokenStream(TokenStream main,
TokenStream ref)
public Token next()
throws IOException
next in class TokenStreamIOExceptionprivate String idType(String type)
public void close()
throws IOException
close in class TokenStreamIOException