Class marimba.io.ScannerInputStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.io.ScannerInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.FilterInputStream
                   |
                   +----marimba.io.FastInputStream
                           |
                           +----marimba.io.ScannerInputStream

public class ScannerInputStream
extends FastInputStream
A scanner input stream. This is an efficient stream tokenizer for integers, identifiers, strings, and special characters.
Version:
1.8, 06/10/96
Author:
Arthur van Hoff

Variable Index

 o EOF
 o IDENTIFIER
 o INTEGER
 o intValue
 o ln
 o STRING
 o strValue
 o tok

Constructor Index

 o ScannerInputStream(File)
 o ScannerInputStream(InputStream)
 o ScannerInputStream(String)

Method Index

 o error(String)
 o expect(int)
 o main(String[])
 o next(int)
 o scan()
 o scanHexByte()

Variables

 o EOF
  public final static int EOF
 o INTEGER
  public final static int INTEGER
 o IDENTIFIER
  public final static int IDENTIFIER
 o STRING
  public final static int STRING
 o tok
  public int tok
 o ln
  public int ln
 o intValue
  public long intValue
 o strValue
  public String strValue

Constructors

 o ScannerInputStream
  public ScannerInputStream(String file) throws IOException
 o ScannerInputStream
  public ScannerInputStream(File file) throws IOException
 o ScannerInputStream
  public ScannerInputStream(InputStream in)

Methods

 o scan
  public int scan()
 o scanHexByte
  public int scanHexByte() throws SyntaxError
 o error
  public void error(String str) throws SyntaxError
 o expect
  public void expect(int expected) throws SyntaxError
 o next
  public boolean next(int expected)
 o main
  public static void main(String argv[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index