sleep.bridges.io
Class ProcessObject

java.lang.Object
  extended by sleep.bridges.io.IOObject
      extended by sleep.bridges.io.ProcessObject

public class ProcessObject
extends IOObject


Field Summary
protected  java.lang.Process process
           
 
Fields inherited from class sleep.bridges.io.IOObject
buffer, in, out, reader, readerb, readeru, thread, token, writerb, writeru
 
Constructor Summary
ProcessObject()
           
 
Method Summary
 void close()
          Closes all of the reader's / writer's opened by this IOObject.
 java.lang.Object getSource()
          returns the Process object used by this IO implementation
 void open(java.lang.String[] command, java.lang.String[] environment, java.io.File startDir, ScriptEnvironment env)
           
 Scalar wait(ScriptEnvironment env, long timeout)
           
 
Methods inherited from class sleep.bridges.io.IOObject
getBuffer, getConsole, getInputBuffer, getInputStream, getOutputStream, getReader, getThread, getToken, getWriter, isEOF, openRead, openWrite, print, printLine, readCharacter, readLine, sendEOF, setEncoding, setThread, setToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

process

protected java.lang.Process process
Constructor Detail

ProcessObject

public ProcessObject()
Method Detail

getSource

public java.lang.Object getSource()
returns the Process object used by this IO implementation

Overrides:
getSource in class IOObject

open

public void open(java.lang.String[] command,
                 java.lang.String[] environment,
                 java.io.File startDir,
                 ScriptEnvironment env)

wait

public Scalar wait(ScriptEnvironment env,
                   long timeout)
Overrides:
wait in class IOObject

close

public void close()
Description copied from class: IOObject
Closes all of the reader's / writer's opened by this IOObject. If the IO Source object opens any streams, this method should be overriden to close those streams when requested. Calling super.close() is highly recommended as well.

Overrides:
close in class IOObject