public class DefaultProcessExecutor extends AbstractProcessExecutor
LOGGER
PROCESS_EXECUTER_CLASS_NAME_PROPERTY_KEY
Constructor and Description |
---|
DefaultProcessExecutor()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected StringBuilder |
addAllBuffer(List<String> commandList,
StringBuilder buffer)
Updates the command list and the buffer.
|
protected StringBuilder |
addPart(List<String> commandList,
StringBuilder buffer,
int endIndex,
boolean typeSpace)
Updates the command list and the buffer.
|
protected ProcessExecutorHelper.ProcessOutput |
executeProcessImpl(ConfigurationHolder configurationHolder,
String command)
This function executes the given command and returns the process output.
|
protected List<String> |
parseCommand(ConfigurationHolder configurationHolder,
String command)
This function parsers the command and converts to a command array.
|
executeProcess
public DefaultProcessExecutor()
protected ProcessExecutorHelper.ProcessOutput executeProcessImpl(ConfigurationHolder configurationHolder, String command) throws IOException, InterruptedException
executeProcessImpl
in class AbstractProcessExecutor
configurationHolder
- The configuration holder used when invoking the processcommand
- The command to executeIOException
- Any IO exceptionInterruptedException
- If thread interrupted during waitFor for the processprotected List<String> parseCommand(ConfigurationHolder configurationHolder, String command)
configurationHolder
- The configuration holder used when invoking the processcommand
- The command to parseprotected StringBuilder addAllBuffer(List<String> commandList, StringBuilder buffer)
commandList
- The command list to updatebuffer
- The input bufferprotected StringBuilder addPart(List<String> commandList, StringBuilder buffer, int endIndex, boolean typeSpace)
commandList
- The command list to updatebuffer
- The input bufferendIndex
- The end index in the buffertypeSpace
- True space, false for quoteCopyright © 2009–2020 fax4j. All rights reserved.