Package gnu.kawa.functions
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 MethodHandle
static final SimpleSymbol
static final SimpleSymbol
static final RunProcess
static final SimpleSymbol
static final SimpleSymbol
Fields inherited from class gnu.mapping.ProcedureN
applyToObject, noArgs
Fields inherited from class gnu.mapping.Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
applyToConsumerRP
(Procedure proc, CallContext ctx) static void
copyStream
(InputStream in, OutputStream out, boolean closeOut) Copy bytes from InputStream to OutputStream using current Thread.static void
doit
(ArgListVector args, Consumer consumer) protected static void
static InputStream
getInputStreamFrom
(Object val) static void
Parse strings into token, handling substitution marks.Methods inherited from class gnu.mapping.ProcedureN
applyToObject
Methods inherited from class gnu.mapping.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, toString
Methods inherited from class gnu.mapping.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
Parse strings into token, handling substitution marks.- Parameters:
useShell
- true if result will be further tokenized by a shell. (In this case we're basically just handling substiution marks.)
-
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
-