de.matthias_burbach.mosaique.core.util
Class CommandLine

java.lang.Object
  extended byde.matthias_burbach.mosaique.core.util.CommandLine

public class CommandLine
extends java.lang.Object

Author:
Matthias Burbach

Constructor Summary
CommandLine()
           
 
Method Summary
 int execute(java.lang.String command)
          Executes the command on the command line.
 java.lang.String getStdErr()
           
 java.lang.String getStdErrWithoutNewLines()
          This variant is helpful if regular expression pattern matching is to be applied on the string.
 java.lang.String getStdout()
           
 java.lang.String getStdoutWithoutNewLines()
          This variant is helpful if regular expression pattern matching is to be applied on the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLine

public CommandLine()
Method Detail

execute

public int execute(java.lang.String command)
Executes the command on the command line.

Parameters:
command - The command to execute.
Returns:
The exit value of the process executed. By convention, 0 usually indicates normal execution.

getStdout

public java.lang.String getStdout()
Returns:
The standard out output of the last command executed.

getStdoutWithoutNewLines

public java.lang.String getStdoutWithoutNewLines()
This variant is helpful if regular expression pattern matching is to be applied on the string.

Returns:
The standard out output of the last command executed. Each new line character is replaced by a blank.

getStdErr

public java.lang.String getStdErr()
Returns:
The standard error output of the last command executed.

getStdErrWithoutNewLines

public java.lang.String getStdErrWithoutNewLines()
This variant is helpful if regular expression pattern matching is to be applied on the string.

Returns:
The standard error output of the last command executed. Each new line character is replaced by a blank.


Copyright © 2005-2006 . All Rights Reserved.