weka.core.converters
Class ConverterUtils

java.lang.Object
  |
  +--weka.core.converters.ConverterUtils
All Implemented Interfaces:
Serializable

public class ConverterUtils
extends Object
implements Serializable

Utility routines for the converter package.

Version:
$Revision 1.0 $
Author:
Mark Hall (mhall@cs.waikato.ac.nz)
See Also:
Serializable, Serialized Form

Constructor Summary
ConverterUtils()
           
 
Method Summary
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.
static void getToken(StreamTokenizer tokenizer)
          Gets token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterUtils

public ConverterUtils()
Method Detail

getFirstToken

public static void getFirstToken(StreamTokenizer tokenizer)
                          throws IOException
Gets token, skipping empty lines.

Parameters:
tokenizer - the stream tokenizer
Throws:
IOException - if reading the next token fails

getToken

public static void getToken(StreamTokenizer tokenizer)
                     throws IOException
Gets token.

Parameters:
tokenizer - the stream tokenizer
Throws:
IOException - if reading the next token fails

errms

public static void errms(StreamTokenizer tokenizer,
                         String theMsg)
                  throws IOException
Throws error message with line number and last token read.

Parameters:
theMsg - the error message to be thrown
tokenizer - the stream tokenizer
Throws:
IOExcpetion - containing the error message
IOException