public class Tokenizer extends InputStream
| Constructor and Description |
|---|
Tokenizer(InputStream in,
boolean enclosedContent) |
| Modifier and Type | Method and Description |
|---|---|
Token |
expect(String message) |
Token |
expectIdentifier(String message) |
Token |
expectStringLiteral(String message) |
char |
expectSymbol(String message,
char... symbols) |
String |
getLine(int theLine) |
boolean |
hasNext() |
Token |
next() |
Token |
peek() |
Token |
peek(String message) |
int |
read() |
String |
readBinary(char end) |
available, close, mark, markSupported, read, read, reset, skippublic Tokenizer(InputStream in, boolean enclosedContent) throws IOException
IOExceptionpublic int read()
read in class InputStreampublic Token expect(String message) throws IOException
IOExceptionpublic Token peek(String message) throws IOException
IOExceptionpublic Token peek() throws IOException
IOExceptionpublic char expectSymbol(String message, char... symbols) throws IOException
IOExceptionpublic Token expectIdentifier(String message) throws IOException
IOExceptionpublic Token expectStringLiteral(String message) throws IOException
IOExceptionpublic boolean hasNext()
throws IOException
IOExceptionpublic Token next() throws IOException
IOExceptionpublic String getLine(int theLine)
public String readBinary(char end) throws TokenizerException
TokenizerExceptionCopyright © 2015–2017 morimekta.net. All rights reserved.