be.hogent.tarsos.util
Class Command

java.lang.Object
  extended by be.hogent.tarsos.util.Command

public class Command
extends java.lang.Object


Constructor Summary
Command(java.lang.String name)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command(java.lang.String name)
Method Detail

addArgument

public Command addArgument(java.lang.String arg)
Adds an argument to the executable call.

Parameters:
arg - The argument.
Returns:
The command itself so methods can be chained.

addFileArgument

public Command addFileArgument(java.lang.String arg)
Add a file to the executable call.

Parameters:
arg -
Returns:
The command itself so methods can be chained.

execute

public java.lang.String execute()
                         throws java.io.IOException
Executes the command.

Returns:
The messages written on standard output.
Throws:
java.io.IOException