public class StreamTokenizerUtils extends Object implements Serializable, RevisionHandler
| Constructor and Description |
|---|
StreamTokenizerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
errms(StreamTokenizer tokenizer,
String theMsg)
Throws error message with line number and last token read.
|
static void |
getFirstToken(StreamTokenizer tokenizer)
Gets token, skipping empty lines.
|
String |
getRevision()
Returns the revision string.
|
static void |
getToken(StreamTokenizer tokenizer)
Gets token.
|
public String getRevision()
RevisionHandlergetRevision in interface RevisionHandlerpublic static void getFirstToken(StreamTokenizer tokenizer) throws IOException
tokenizer - the stream tokenizerIOException - if reading the next token failspublic static void getToken(StreamTokenizer tokenizer) throws IOException
tokenizer - the stream tokenizerIOException - if reading the next token failspublic static void errms(StreamTokenizer tokenizer, String theMsg) throws IOException
theMsg - the error message to be throwntokenizer - the stream tokenizerIOException - containing the error messageCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.