org.sunflow.system

Class Parser


public class Parser
extends java.lang.Object

Constructor Summary

Parser(String filename)

Method Summary

void
checkNextToken(String token)
void
close()
boolean
getNextBoolean()
String
getNextCodeBlock()
float
getNextFloat()
int
getNextInt()
String
getNextToken()
boolean
peekNextToken(String tok)

Constructor Details

Parser

public Parser(String filename)
            throws FileNotFoundException

Method Details

checkNextToken

public void checkNextToken(String token)
            throws ParserException,
                   IOException

close

public void close()
            throws IOException

getNextBoolean

public boolean getNextBoolean()
            throws IOException

getNextCodeBlock

public String getNextCodeBlock()
            throws ParserException,
                   IOException

getNextFloat

public float getNextFloat()
            throws IOException

getNextInt

public int getNextInt()
            throws IOException

getNextToken

public String getNextToken()
            throws IOException

peekNextToken

public boolean peekNextToken(String tok)
            throws IOException