Class SceneReader

java.lang.Object
  |
  +--SceneReader

public class SceneReader
extends java.lang.Object

A class to read values from a file, URL or stream


Method Summary
 void close()
          Close the file when finished
 boolean eof()
          Return true if the end of file has been reached.
 char readChar()
          Read a char value from file.
 double readDouble()
          Read a double value from file.
 float readFloat()
          Read a float value from file.
 int readInt()
          Read an int value from file.
 long readLong()
          Read a long value from file.
 java.lang.String readString()
          Read an String value from file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
           throws java.io.IOException
Close the file when finished

java.io.IOException

eof

public boolean eof()
Return true if the end of file has been reached.

Returns:
boolean value

readInt

public final int readInt()
                  throws java.io.IOException,
                         java.lang.NumberFormatException
Read an int value from file.

java.io.IOException
java.lang.NumberFormatException

readLong

public final long readLong()
                    throws java.io.IOException,
                           java.lang.NumberFormatException
Read a long value from file.

Returns:
a long value
java.io.IOException
java.lang.NumberFormatException

readDouble

public final double readDouble()
                        throws java.io.IOException,
                               java.lang.NumberFormatException
Read a double value from file.

Returns:
a double value
java.io.IOException
java.lang.NumberFormatException

readFloat

public final float readFloat()
                      throws java.io.IOException,
                             java.lang.NumberFormatException
Read a float value from file.

Returns:
a float value
java.io.IOException
java.lang.NumberFormatException

readChar

public final char readChar()
                    throws java.io.IOException
Read a char value from file.

Returns:
a char value
java.io.IOException

readString

public final java.lang.String readString()
                                  throws java.io.IOException
Read an String value from file.

Returns:
a string value
java.io.IOException