tracer
Class Parser

java.lang.Object
  extended bytracer.Parser

public class Parser
extends java.lang.Object

This class knows how to read scene files


Constructor Summary
Parser(java.lang.String filename)
           
 
Method Summary
 boolean endOfFile()
           
 java.lang.String errorString()
           
 float parseFloat()
           
 boolean parseKeyword(java.lang.String key)
           
 java.lang.String tokenWasUnexpected()
           
 boolean tryKeyword(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(java.lang.String filename)
Method Detail

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