org.stellarium.command
Class Script

java.lang.Object
  extended by org.stellarium.command.Script

 class Script
extends java.lang.Object

Version:
0.8.2
Author:
Jerome Beau, Fred Simon

Field Summary
private  java.io.BufferedReader inputFile
           
private  java.lang.String path
           
 
Constructor Summary
Script()
           
 
Method Summary
 void close()
           
(package private)  java.lang.String getPath()
           
(package private)  void load(java.lang.String scriptFile, java.lang.String scriptPath)
           
(package private)  java.lang.String nextCommand()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputFile

private java.io.BufferedReader inputFile

path

private java.lang.String path
Constructor Detail

Script

Script()
Method Detail

close

public void close()

load

void load(java.lang.String scriptFile,
          java.lang.String scriptPath)
    throws StellariumException
Throws:
StellariumException

nextCommand

java.lang.String nextCommand()
                       throws StellariumException
Returns:
The next executed command, or null if there wasn't any left.
Throws:
StellariumException - If an I/O error occured while reading the next command.

getPath

java.lang.String getPath()