com.e_c_group.bwptk
Class CommandLineInterface

java.lang.Object
  extended by com.e_c_group.bwptk.CommandLineInterface

public class CommandLineInterface
extends java.lang.Object


Constructor Summary
CommandLineInterface()
           
 
Method Summary
static int executeBasicCommandLine(java.lang.String[] args, BroadWorksServer bws, java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err)
          Execute a command.
static void main(java.lang.String[] args)
           
static void RunShell(BroadWorksServer bws, java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err, boolean displayPrompt)
          Execute an Interactive Shell.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineInterface

public CommandLineInterface()
Method Detail

RunShell

public static void RunShell(BroadWorksServer bws,
                            java.io.InputStream in,
                            java.io.PrintStream out,
                            java.io.PrintStream err,
                            boolean displayPrompt)
                     throws java.lang.Exception
Execute an Interactive Shell.

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

executeBasicCommandLine

public static int executeBasicCommandLine(java.lang.String[] args,
                                          BroadWorksServer bws,
                                          java.io.InputStream in,
                                          java.io.PrintStream out,
                                          java.io.PrintStream err)
                                   throws java.lang.Exception
Execute a command.

Returns:
A Unix-error-level-like code. 0 means success; anything else means failure.
Throws:
java.lang.Exception