public class ExecutableCommand extends Object
Wrapper around an executable command outside the JVM.
| Modifier and Type | Field and Description |
|---|---|
String |
executable |
| Constructor and Description |
|---|
ExecutableCommand(String executable) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(String... arguments)
Runs the executable outside the JVM by calling Runtime.exec().
|
boolean |
isAvailable()
Tests if an executable file was found in the path.
|
public final String executable
public ExecutableCommand(String executable)
public void execute(String... arguments) throws IOException
Runs the executable outside the JVM by calling Runtime.exec().
IOExceptionpublic boolean isAvailable()
Tests if an executable file was found in the path.
Copyright © 2018–2019 Write Them First!. All rights reserved.