Copyright 2002 by aragost

com.aragost.io
Class OSCommand

java.lang.Object
  |
  +--com.aragost.io.OSCommand

public class OSCommand
extends java.lang.Object


Constructor Summary
OSCommand(java.lang.String command)
          Creates new OSCommand.
 
Method Summary
 void execute()
           
 java.lang.String getErrorOutput()
          Return the error output of the command
 java.lang.String getOutput()
          return the error and standard output from the command
 java.lang.String getStdOutput()
          return the standard output from the command
 int returnCode()
           
 void setInput(java.io.InputStream input)
           
 void setInput(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSCommand

public OSCommand(java.lang.String command)
Creates new OSCommand. This will not execute the command

Parameters:
command - string representation of the command
Method Detail

execute

public void execute()
             throws java.io.IOException
java.io.IOException

setInput

public void setInput(java.io.InputStream input)

setInput

public void setInput(java.lang.String s)

getErrorOutput

public java.lang.String getErrorOutput()
Return the error output of the command

Returns:
String

getStdOutput

public java.lang.String getStdOutput()
return the standard output from the command

Returns:
String

getOutput

public java.lang.String getOutput()
return the error and standard output from the command

Returns:
String

returnCode

public int returnCode()
Returns:
int

Copyright 2002 by aragost