Class RunProcess
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Procedure
gnu.mapping.ProcedureN
gnu.kawa.functions.RunProcess
- All Implemented Interfaces:
Named
The Kawa run-process command builds and runs a Process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MethodHandlestatic final SimpleSymbolstatic final SimpleSymbolstatic final RunProcessstatic final SimpleSymbolstatic final SimpleSymbolFields inherited from class ProcedureN
applyToObject, noArgsFields inherited from class Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKeyFields inherited from class PropertySet
nameKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectapplyToConsumerRP(Procedure proc, CallContext ctx) static voidcopyStream(InputStream in, OutputStream out, boolean closeOut) Copy bytes from InputStream to OutputStream using current Thread.static voiddoit(ArgListVector args, Consumer consumer) protected static voidstatic InputStreamgetInputStreamFrom(Object val) static voidParse strings into token, handling substitution marks.Methods inherited from class ProcedureN
applyToObjectMethods inherited from class Procedure
apply0, apply1, apply2, apply3, apply4, applyL, applyN, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toStringMethods inherited from class PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
Field Details
-
applyToConsumerRP
-
instance
-
inheritSymbol
-
pipeSymbol
-
currentSymbol
-
outSymbol
-
-
Constructor Details
-
RunProcess
-
-
Method Details
-
applyToConsumerRP
- Throws:
Throwable
-
error
-
doit
- Throws:
Throwable
-
tokenize
-
getInputStreamFrom
-
copyStream
public static void copyStream(InputStream in, OutputStream out, boolean closeOut) throws IOException Copy bytes from InputStream to OutputStream using current Thread. Continue copying until EOF or exception. At end, the input stream is closed, but the output stream is not.- Throws:
IOException
-