All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.core.converters.ConverterUtils

java.lang.Object
   |
   +----weka.core.converters.ConverterUtils

public class ConverterUtils
extends Object
implements Serializable
Utility routines for the converter package.

Author:
Mark Hall (mhall@cs.waikato.ac.nz)
See Also:
Serializable

Constructor Index

 o ConverterUtils()

Method Index

 o errms(StreamTokenizer, String)
Throws error message with line number and last token read.
 o getFirstToken(StreamTokenizer)
Gets token, skipping empty lines.
 o getToken(StreamTokenizer)
Gets token.

Constructors

 o ConverterUtils
 public ConverterUtils()

Methods

 o 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
 o getToken
 public static void getToken(StreamTokenizer tokenizer) throws IOException
Gets token.

Parameters:
tokenizer - the stream tokenizer
Throws: IOException
if reading the next token fails
 o 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home