- All Superinterfaces:
AutoCloseable,ProcessControl
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.xpipe.core.process.ProcessControl
ProcessControl.ExceptionConverter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptioncomplex()default booleanvoidelevated(ElevationFunction function) default voidexecute()default booleanlongbyte[]String[]voidsetExitTimeout(Duration duration) voidstart()booleanwaitFor()withCustomCharset(Charset charset) withErrorFormatter(Function<String, String> formatter) withWorkingDirectory(String directory) Methods inherited from interface io.xpipe.core.process.ProcessControl
close, closeStdin, getCharset, getShellDialect, getStderr, getStdin, getStdout, getUuid, isAnyStreamClosed, isRunning, kill, prepareTerminalOpen, refreshRunningState, resetData, shutdown
-
Field Details
-
UNASSIGNED_EXIT_CODE
static final int UNASSIGNED_EXIT_CODE- See Also:
-
EXIT_TIMEOUT_EXIT_CODE
static final int EXIT_TIMEOUT_EXIT_CODE- See Also:
-
START_FAILED_EXIT_CODE
static final int START_FAILED_EXIT_CODE- See Also:
-
INTERNAL_ERROR_EXIT_CODE
static final int INTERNAL_ERROR_EXIT_CODE- See Also:
-
ELEVATION_FAILED_EXIT_CODE
static final int ELEVATION_FAILED_EXIT_CODE- See Also:
-
-
Method Details
-
setSensitive
void setSensitive() -
withExceptionConverter
- Specified by:
withExceptionConverterin interfaceProcessControl
-
start
- Specified by:
startin interfaceProcessControl- Throws:
Exception
-
withErrorFormatter
-
terminalExitMode
-
doesNotObeyReturnValueConvention
CommandControl doesNotObeyReturnValueConvention() -
complex
CommandControl complex() -
notComplex
CommandControl notComplex() -
withWorkingDirectory
-
execute
-
executeAndCheck
-
getParent
ShellControl getParent() -
startExternalStdout
- Throws:
Exception
-
startExternalStdin
- Throws:
Exception
-
setExitTimeout
-
waitFor
boolean waitFor() -
withCustomCharset
-
getExitCode
long getExitCode() -
elevated
-
readStdoutAndStderr
-
discardOrThrow
-
readRawBytesOrThrow
-
readStdoutOrThrow
-
readStdoutIfPossible
-
discardAndCheckExit
- Throws:
ProcessOutputException
-