jhomenet.shell.command
Class GetRegisteredHardwareCommand
java.lang.Object
jhomenet.shell.command.GetRegisteredHardwareCommand
- All Implemented Interfaces:
- SlushCommand
public class GetRegisteredHardwareCommand
- extends java.lang.Object
- implements SlushCommand
Displays all available commands, or help information for a given command.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetRegisteredHardwareCommand
public GetRegisteredHardwareCommand()
getUsageString
public java.lang.String getUsageString()
- Returns a string describing the usage of the command and its arguments if any.
- Specified by:
getUsageString in interface SlushCommand
- Returns:
- The usage statement for this command.
execute
public 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.
- 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.