public class ExecUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExecUtils.ByteCollectingSubscription |
static interface |
ExecUtils.BytesSubscription |
static class |
ExecUtils.ExecBuilder |
static interface |
ExecUtils.ExecCleanuper |
static interface |
ExecUtils.ExecCompletionHandler |
static class |
ExecUtils.ExecOutputConsumer |
static interface |
ExecUtils.ExecSubscription |
static class |
ExecUtils.ExecutionResults |
static interface |
ExecUtils.LazyInitExecKiller |
static interface |
ExecUtils.LineSubscription |
static class |
ExecUtils.LoggingLineSubscription |
static class |
ExecUtils.OutputStreamSubscription |
static class |
ExecUtils.OutputWriterSubscription |
static class |
ExecUtils.SimpleExceptionExecCompletionHandler |
| Constructor and Description |
|---|
ExecUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
execAndGetOutput(ProcessBuilder pb) |
static ExecUtils.ExecutionResults |
execAndGetOutputAndErrors(ProcessBuilder pb) |
static ExecUtils.ExecutionResults |
execAndGetOutputAndErrors(String[] args,
Map<String,String> env) |
static byte[] |
execAndLogAndGetOutput(ProcessBuilder pb,
File log) |
static void |
unsafeSleep(long ms) |
public static void unsafeSleep(long ms)
public static byte[] execAndGetOutput(ProcessBuilder pb) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static byte[] execAndLogAndGetOutput(ProcessBuilder pb, File log) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static ExecUtils.ExecutionResults execAndGetOutputAndErrors(ProcessBuilder pb) throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic static ExecUtils.ExecutionResults execAndGetOutputAndErrors(String[] args, Map<String,String> env) throws InterruptedException, IOException
InterruptedExceptionIOExceptionCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.