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, getSynopsispublic EchoCommand()
public String getName()
ConsoleCommand
Example:
getName in class ConsoleCommandpublic String getInfo()
ConsoleCommandThe locale should be the system locale.
getInfo in class ConsoleCommandpublic String getDescription()
ConsoleCommandThe locale should be the system locale.
getDescription in class ConsoleCommandpublic boolean execute(Scanner in, PrintWriter out, Args args)
ConsoleCommandexecute in class ConsoleCommandin - 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.