public class Command
extends java.lang.Object
Constructor and Description |
---|
Command(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
Command |
addArgument(java.lang.String arg)
Adds an argument to the executable call.
|
Command |
addFileArgument(java.lang.String arg)
Add a file to the executable call.
|
java.lang.String |
execute()
Executes the command.
|
public Command addArgument(java.lang.String arg)
arg
- The argument.public Command addFileArgument(java.lang.String arg)
arg
- public java.lang.String execute() throws java.io.IOException
java.io.IOException