sleep.bridges.io
Class ProcessObject
java.lang.Object
sleep.bridges.io.IOObject
sleep.bridges.io.ProcessObject
public class ProcessObject
- extends IOObject
Methods inherited from class sleep.bridges.io.IOObject |
getConsole, getInputBuffer, getInputStream, getOutputStream, getReader, getThread, getToken, getWriter, isEOF, openRead, openWrite, print, printLine, readCharacter, readLine, sendEOF, setConsole, setEncoding, setThread, setToken |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
process
protected Process process
ProcessObject
public ProcessObject()
getSource
public Object getSource()
- returns the Process object used by this IO implementation
- Overrides:
getSource
in class IOObject
open
public void open(String[] command,
String[] environment,
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