Package weka.core.converters
Class StreamTokenizerUtils
java.lang.Object
weka.core.converters.StreamTokenizerUtils
- All Implemented Interfaces:
Serializable
,RevisionHandler
Helper class for using stream tokenizers
- Version:
- $Revision: 9284 $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.Returns the revision string.static void
getToken
(StreamTokenizer tokenizer) Gets token.
-
Constructor Details
-
StreamTokenizerUtils
public StreamTokenizerUtils()
-
-
Method Details
-
getRevision
Description copied from interface:RevisionHandler
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-
getFirstToken
Gets token, skipping empty lines.- Parameters:
tokenizer
- the stream tokenizer- Throws:
IOException
- if reading the next token fails
-
getToken
Gets token.- Parameters:
tokenizer
- the stream tokenizer- Throws:
IOException
- if reading the next token fails
-
errms
Throws error message with line number and last token read.- Parameters:
theMsg
- the error message to be throwntokenizer
- the stream tokenizer- Throws:
IOException
- containing the error message
-