org.apache.qpid.tools.utils
Interface Console
- All Known Implementing Classes:
- SimpleConsole
public interface Console
ROW_DIVIDER
static final String ROW_DIVIDER
- See Also:
- Constant Field Values
print
void print(String... message)
println
void println(String... message)
readln
String readln()
readCommand
String[] readCommand()
- Reads and parses the command line.
- Returns:
- The next command or null
getCommandParser
CommandParser getCommandParser()
setCommandParser
void setCommandParser(CommandParser parser)
displayList
void displayList(boolean hasTitle,
String... list)
- Prints the list of String nicely.
+-------------+
| Heading |
+-------------+
| Item 1 |
| Item 2 |
| Item 3 |
+-------------+
- Parameters:
hasTitle
- should list[0] be used as a headinglist
- The list of Strings to display
printMap
void printMap(String title,
List<List> entries)
- Prints the list of String nicely.
+----------------------------+
| Heading |
+----------------------------+
| title | title | ..
+----------------------------+
| Item 2 | value 2 | ..
+----------------------------+ (*divider)
| Item 3 | value 2 | ..
+----------------------------+
- Parameters:
title
- The title to display if anyentries
- the entries to display in a map.
close
void close()
Licensed to the Apache Software Foundation