|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnfa.NFAScanner
public class NFAScanner
A simple scanner to help process NFA input files.
This class is modeled after Scanner
.
Constructor Summary | |
---|---|
NFAScanner()
Create a new NFAScanner that reads input from the terminal. |
|
NFAScanner(File f)
Create a new NFAScanner that reads input from the File provided as a parameter. |
Method Summary | |
---|---|
boolean |
hasNext()
Return true if there is more input left. |
boolean |
hasNextInt()
Return true if the next token in the input stream can be interpreted as in integer value. |
boolean |
hasNextIntList()
Return true if the next token is an int list of the form (1,2,3). |
int |
nextInt()
Return the next token, after converting it to an integer. |
Vector<Integer> |
nextIntList()
Read an int list of the form (1,2,3) and return it as a Vector of integers. |
String |
nextLine()
Return the next line of text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NFAScanner()
public NFAScanner(File f) throws IOException
IOException
Method Detail |
---|
public boolean hasNextInt()
public int nextInt()
public boolean hasNext()
public String nextLine()
public boolean hasNextIntList()
public Vector<Integer> nextIntList()
Vector
of integers.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |