deadpixel.command
Class Command

java.lang.Object
  extended by deadpixel.command.Command

public class Command
extends Object


Field Summary
static String VERSION
           
 
Constructor Summary
Command(String theCommand)
           
 
Method Summary
 String[] getOutput()
          Returns each line of the command's output as an array of String objects.
 boolean run()
          Runs the command.
static String version()
          return the version of the library.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final String VERSION
See Also:
Constant Field Values
Constructor Detail

Command

public Command(String theCommand)
Method Detail

run

public boolean run()
Runs the command. Returns true if the command was successful, false otherwise. The output of the command can be accessed by calling getOutput()

Returns:
true if the command ran successfully, false if there was an error running the command

getOutput

public String[] getOutput()
Returns each line of the command's output as an array of String objects. Useful if you need to capture the results from running a command.


version

public static String version()
return the version of the library.

Returns:
String


Processing library command by David Bouchard. (C) 2012