|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MessageWriter
A simple interface between a MessageHandler and any implementing class, which registers and then reports message, warning, or error events through the interface.
| Method Summary | |
|---|---|
String |
writeMessage(int status,
String message)
Write the contents of the String message to a message display (eg., stdout) with any indication of message type provided by the status parameter, whose values are one of the state values from MessageHandler:
OK no activity
LOG a log message has occurred. |
void |
writeMessage(String message)
Write the contents of the String message to a message display (eg., stdout). |
void |
writeStatus(String message)
Write the contents of the String message to a status display (eg., stdout). |
| Method Detail |
|---|
String writeMessage(int status,
String message)
MessageHandler:
Implementors of this method will be expected to prepend "Error:", "Warning:", etc. (or color the message) as appropriate. I.e., that the message will not already contain such notification.
MessageHandlervoid writeMessage(String message)
void writeStatus(String message)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||