gov.sandia.ccaffeine.dc.user_iface.examples
Class ScriptFile

java.lang.Object
  extended by gov.sandia.ccaffeine.dc.user_iface.examples.ScriptFile

public class ScriptFile
extends java.lang.Object


Field Summary
protected  java.io.BufferedReader reader
           
 
Constructor Summary
ScriptFile()
           
 
Method Summary
 void close()
          Close the script file.
static void main(java.lang.String[] args)
           
 void open()
          open the script file
 java.lang.String readLine()
          Read one line from the script file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

protected java.io.BufferedReader reader
Constructor Detail

ScriptFile

public ScriptFile()
Method Detail

open

public void open()
open the script file


readLine

public java.lang.String readLine()
                          throws java.io.IOException
Read one line from the script file. If we have reached EOF then return null.

Returns:
one line from the script file
Throws:
java.io.IOException - Thrown if an io error occurs.

close

public void close()
Close the script file.


main

public static void main(java.lang.String[] args)