Documentation of 'weka.core.converters.StreamTokenizerUtils' Java class
StreamTokenizerUtils
weka.core.converters

Class StreamTokenizerUtils

  • All Implemented Interfaces:
    java.io.Serializable, RevisionHandler


    public class StreamTokenizerUtils
    extends java.lang.Object
    implements java.io.Serializable, RevisionHandler
    Helper class for using stream tokenizers
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static void errms(java.io.StreamTokenizer tokenizer, java.lang.String theMsg)
      Throws error message with line number and last token read.
      static void getFirstToken(java.io.StreamTokenizer tokenizer)
      Gets token, skipping empty lines.
      java.lang.String getRevision()
      Returns the revision string.
      static void getToken(java.io.StreamTokenizer tokenizer)
      Gets token.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamTokenizerUtils

        public StreamTokenizerUtils()
    • Method Detail

      • getRevision

        public java.lang.String getRevision()
        Description copied from interface: RevisionHandler
        Returns the revision string.
        Specified by:
        getRevision in interface RevisionHandler
        Returns:
        the revision
      • getFirstToken

        public static void getFirstToken(java.io.StreamTokenizer tokenizer)
                                  throws java.io.IOException
        Gets token, skipping empty lines.
        Parameters:
        tokenizer - the stream tokenizer
        Throws:
        java.io.IOException - if reading the next token fails
      • getToken

        public static void getToken(java.io.StreamTokenizer tokenizer)
                             throws java.io.IOException
        Gets token.
        Parameters:
        tokenizer - the stream tokenizer
        Throws:
        java.io.IOException - if reading the next token fails
      • errms

        public static void errms(java.io.StreamTokenizer tokenizer,
                                 java.lang.String theMsg)
                          throws java.io.IOException
        Throws error message with line number and last token read.
        Parameters:
        theMsg - the error message to be thrown
        tokenizer - the stream tokenizer
        Throws:
        java.io.IOException - containing the error message

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.