jhomenet.shell.command
Class SwitchCommand

java.lang.Object
  extended by jhomenet.shell.command.SwitchCommand
All Implemented Interfaces:
SlushCommand

public class SwitchCommand
extends java.lang.Object
implements SlushCommand

Version:
$Revision: 1.5 $ Filename: $Source: /cvsroot/jhomenet/files/src/jhomenet/shell/command/SwitchCommand.java,v $ Description:
Author:
$Author: dhirwinjr $

Constructor Summary
SwitchCommand()
           
 
Method Summary
 void execute(SystemInputStream in, SystemPrintStream out, SystemPrintStream err, java.lang.String[] args, java.util.HashMap env)
          Method called when this command is executed from the command prompt.
 java.lang.String getUsageString()
          Get the command usage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchCommand

public SwitchCommand()
Method Detail

getUsageString

public java.lang.String getUsageString()
Get the command usage.

Specified by:
getUsageString in interface SlushCommand
Returns:
the usage.
See Also:
SlushCommand

execute

public void execute(SystemInputStream in,
                    SystemPrintStream out,
                    SystemPrintStream err,
                    java.lang.String[] args,
                    java.util.HashMap env)
             throws java.lang.Exception
Method called when this command is executed from the command prompt.

Specified by:
execute in interface SlushCommand
Parameters:
in - The InputStream this command will use to receive input.
out - The PrintStream should use to report any non-critical messages.
err - The PrintStream should use to report any critical messages.
args - The command line arguments passed to this command.
env - The current properties variables for this session.
Throws:
java.lang.Exception


Copyright © 2004-2005 David Irwin. All Rights Reserved.