inua.util
Class Scanner

java.lang.Object
  extended by inua.util.Scanner

public class Scanner
extends Object

A very simplistic tokenizer.


Field Summary
 boolean debug
           
 
Constructor Summary
Scanner(File f)
           
Scanner(String fileName)
           
 
Method Summary
 boolean endOfFile()
           
 int getLineNumber()
           
 char readByte()
           
 long readDecimalLong()
           
 byte readHexByte()
           
 long readHexLong()
           
 String readLine()
           
 void skipByte(char c)
           
 void skipWhitespace()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug
Constructor Detail

Scanner

public Scanner(String fileName)
        throws IOException
Throws:
IOException

Scanner

public Scanner(File f)
        throws IOException
Throws:
IOException
Method Detail

endOfFile

public boolean endOfFile()

getLineNumber

public int getLineNumber()

skipByte

public void skipByte(char c)
              throws IOException
Throws:
IOException

skipWhitespace

public void skipWhitespace()
                    throws IOException
Throws:
IOException

readByte

public char readByte()
              throws IOException
Throws:
IOException

readHexLong

public long readHexLong()
                 throws IOException
Throws:
IOException

readHexByte

public byte readHexByte()
                 throws IOException
Throws:
IOException

readDecimalLong

public long readDecimalLong()
                     throws IOException
Throws:
IOException

readLine

public String readLine()
                throws IOException
Throws:
IOException