public class EchoCommand extends ConsoleCommand
Constructor and Description |
---|
EchoCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Scanner in,
PrintWriter out,
Args args)
Executes a command.
|
String |
getDescription()
Returns localized details of the command.
|
String |
getInfo()
Returns a one-line localized description of the command.
|
String |
getName()
Returns the name of the command.
|
getExamples, getSynopsis
public EchoCommand()
public String getName()
ConsoleCommand
Example:
getName
in class ConsoleCommand
public String getInfo()
ConsoleCommand
The locale should be the system locale.
getInfo
in class ConsoleCommand
public String getDescription()
ConsoleCommand
The locale should be the system locale.
getDescription
in class ConsoleCommand
public boolean execute(Scanner in, PrintWriter out, Args args)
ConsoleCommand
execute
in class ConsoleCommand
in
- The console reader.out
- The console writer.args
- The command arguments. The first argument is always the command itself.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.