|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.util.MessagePrinter
public class MessagePrinter
Provides standard formatting for messages.
Field Summary | |
---|---|
static int |
CONSOLE
A destination flag indicating the console. |
static int |
LOG
A destination flag indicating logging. |
Constructor Summary | |
---|---|
MessagePrinter()
|
Method Summary | |
---|---|
static void |
gotLine()
Tells the MessagePrinter that we got an input; not midLine anymore. |
static void |
print(java.lang.String message,
java.lang.String typeFlag,
java.io.PrintStream out,
int destination)
Print a message (no linebreak) with a type flag to a PrintStream . |
static void |
println(java.lang.String message,
java.lang.String typeFlag,
java.io.FileWriter out,
int destination)
Print a message with a type flag to a FileWriter . |
static void |
println(java.lang.String message,
java.lang.String typeFlag,
java.io.PrintStream out,
int destination)
Print a message line with a type flag to a PrintStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CONSOLE
public static final int LOG
Constructor Detail |
---|
public MessagePrinter()
Method Detail |
---|
public static void println(java.lang.String message, java.lang.String typeFlag, java.io.PrintStream out, int destination)
PrintStream
.
message
- the message to printtypeFlag
- user-definedout
- (such as @{link java.lang.System.out System.out})destination
- destination flag (for choosing format)public static void print(java.lang.String message, java.lang.String typeFlag, java.io.PrintStream out, int destination)
PrintStream
.
message
- the message to printtypeFlag
- user-definedout
- (such as @{link java.lang.System.out System.out})destination
- destination flag (for choosing format)public static void println(java.lang.String message, java.lang.String typeFlag, java.io.FileWriter out, int destination)
FileWriter
.
message
- the message to printout
- the FileWriter
to usedestination
- destination flag (for choosing format)public static void gotLine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |