tracer
Class Parser
java.lang.Object
tracer.Parser
- public class Parser
- extends java.lang.Object
This class knows how to read scene files
Constructor Summary |
Parser(java.lang.String filename)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parser
public Parser(java.lang.String filename)
errorString
public java.lang.String errorString()
tokenWasUnexpected
public java.lang.String tokenWasUnexpected()
throws java.io.IOException
- Throws:
java.io.IOException
endOfFile
public boolean endOfFile()
throws java.io.IOException
- Throws:
java.io.IOException
tryKeyword
public boolean tryKeyword(java.lang.String key)
throws java.io.IOException
- Throws:
java.io.IOException
parseKeyword
public boolean parseKeyword(java.lang.String key)
throws java.io.IOException
- Throws:
java.io.IOException
parseFloat
public float parseFloat()
throws java.io.IOException
- Throws:
java.io.IOException