public interface CommandExecutor
Modifier and Type | Method and Description |
---|---|
CommandResult |
execute(Command command)
Execute command and build the result.
|
CommandResult |
execute(Command command,
OutputHandler handler)
Execute command and build the result.
|
CommandProcess |
start(Command command)
Start command line and return associated process.
|
CommandResult execute(Command command) throws java.io.IOException
command
- Command input.java.io.IOException
- If an error occurred during execution.CommandResult execute(Command command, OutputHandler handler) throws java.io.IOException
command
- Command.handler
- Custom output handler.java.io.IOException
- If an error occurred during operation.CommandProcess start(Command command) throws java.io.IOException
command
- Command.java.io.IOException
- If an error occurred during operation.Copyright © 2019. All Rights Reserved.