Package gnu.kawa.functions
Class LProcess
java.lang.Object
java.lang.Process
gnu.kawa.functions.LProcess
A process whose lazy "value" is the bytes from standard output.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Process
children, descendants, destroyForcibly, errorReader, errorReader, info, inputReader, inputReader, isAlive, onExit, outputWriter, outputWriter, pid, supportsNormalTermination, toHandle, waitFor
-
Constructor Details
-
LProcess
-
-
Method Details
-
getInputStream
- Specified by:
getInputStream
in classProcess
-
getOutputStream
- Specified by:
getOutputStream
in classProcess
-
getErrorStream
- Specified by:
getErrorStream
in classProcess
-
waitFor
- Specified by:
waitFor
in classProcess
- Throws:
InterruptedException
-
exitValue
public int exitValue() -
destroy
public void destroy() -
getValue
Description copied from interface:Lazy
Return the actual value. Note thatgetValue()
may returnthis
, if this object isn't actually lazy. It may also return another lazy value. Normally you should usePromise.force{val}
to extra a non-lazy (eager) value.
-