frost.core.System

Class Process

    └ Immutable
         └ Object

Represents a program launched by System.exec.

Source Code:
View Source
Inherited Fields:

Instance Method Summary

standardInput():OutputStream
Returns an OutputStream which sends its output to the process' standard input stream.
standardOutput():InputStream
Returns an InputStream which reads from the process' standard output stream.
standardError():InputStream
Returns an InputStream which reads from the process' standard error stream.
exitCode():Int?
Returns the process' exit code, or null if the process has not yet exited.
waitFor():Int
Waits for the process to finish and returns its exit code.

Instance Methods

method standardInput ():OutputStream

Returns an OutputStream which sends its output to the process' standard input stream.

method standardOutput ():InputStream

Returns an InputStream which reads from the process' standard output stream.

method standardError ():InputStream

Returns an InputStream which reads from the process' standard error stream.

method exitCode ():Int?

Returns the process' exit code, or null if the process has not yet exited. The precise meaning of the exit code is defined by the program and operating environment, but typically an exit code of 0 indicates success and a non-zero exit code indicates an error.

method waitFor ():Int

Waits for the process to finish and returns its exit code.