| Modifier and Type | Field and Description |
|---|---|
| private static MessageFormat | messageFormat
Our message formatter. |
| pack-priv static ResourceBundle | textResources
The resource bundle containing localizable message content. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static synchronized String | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void |
| messageFormat | back to summary |
|---|---|
| private static MessageFormat messageFormat Our message formatter. Allocated once, used many times | |
| textResources | back to summary |
|---|---|
| pack-priv static ResourceBundle textResources The resource bundle containing localizable message content. This is loaded by TTY.main() at start-up | |
| MessageOutput | back to summary |
|---|---|
| public MessageOutput() | |
| fatalError | back to summary |
|---|---|
| pack-priv static void fatalError(String messageKey) Fatal shutdown notification. This is sent to System.err instead of System.out | |
| format | back to summary |
|---|---|
| pack-priv static String format(String key) "Format" a string by doing a simple key lookup. | |
| format | back to summary |
|---|---|
| pack-priv static String format(String key, String argument) Fetch and format a message with one string argument. This is the most common usage. | |
| format | back to summary |
|---|---|
| pack-priv static synchronized String format(String key, Object[] arguments) Fetch a string by key lookup and format in the arguments. | |
| lnprint | back to summary |
|---|---|
| pack-priv static void lnprint(String key) Print a newline, followed by the string. | |
| lnprint | back to summary |
|---|---|
| pack-priv static void lnprint(String key, String argument) | |
| lnprint | back to summary |
|---|---|
| pack-priv static void lnprint(String key, Object[] arguments) | |
| back to summary | |
|---|---|
| pack-priv static void print(String key) Format and print a simple string. | |
| back to summary | |
|---|---|
| pack-priv static void print(String key, String argument) Fetch, format and print a message with one string argument. This is the most common usage. | |
| printDirect | back to summary |
|---|---|
| pack-priv static void printDirect(String line) | |
| printDirect | back to summary |
|---|---|
| pack-priv static void printDirect(char c) | |
| printDirectln | back to summary |
|---|---|
| pack-priv static void printDirectln(String line) Print directly to System.out. Every rule has a few exceptions. The exceptions to "must use the MessageOutput formatters" are: VMConnection.dumpStream() TTY.monitorCommand() TTY.TTY() (for the '!!' command only) Commands.java (multiple locations) These are the only sites that should be calling this method. | |
| printException | back to summary |
|---|---|
| pack-priv static void printException(String key, Exception e) Print an exception message with a stack trace. | |
| println | back to summary |
|---|---|
| pack-priv static void println() Print a newline. Use this instead of '\n' | |
| println | back to summary |
|---|---|
| pack-priv static void println(String key) Format and print a simple string. | |
| println | back to summary |
|---|---|
| pack-priv static void println(String key, String argument) | |
| println | back to summary |
|---|---|
| pack-priv static void println(String key, Object[] arguments) Fetch, format and print a message with an arbitrary number of message arguments. | |
| printPrompt | back to summary |
|---|---|
| pack-priv static void printPrompt() | |
| printPrompt | back to summary |
|---|---|
| pack-priv static void printPrompt(boolean simple) | |