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
           
private  DataInputStream file
           
private  int lineNumber
           
private  char lookAhead
           
 
Constructor Summary
Scanner(File f)
           
Scanner(String fileName)
           
 
Method Summary
 boolean endOfFile()
           
 int getLineNumber()
           
private  void readAhead()
           
 char readByte()
           
 long readDecimalLong()
           
 byte readHexByte()
           
 long readHexLong()
           
 String readLine()
           
 void skipByte(char c)
           
 void skipWhitespace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug

file

private DataInputStream file

lineNumber

private int lineNumber

lookAhead

private char lookAhead
Constructor Detail

Scanner

public Scanner(String fileName)
        throws IOException
Throws:
IOException

Scanner

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

readAhead

private void readAhead()
                throws IOException
Throws:
IOException

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