|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.output.MsgFormat
Represents the formatting of each line of output. Managed by OConfig.
Source code: MsgFormat.java. Example code See the example code for MFDate and MFPlain
The most common MsgFormat is a date/time stamp. If you desire no MsgFormat, then use MFPlain. Otherwise, extend this class to make a specialized prefix of your very own.
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
MsgFormat()
Create a MsgFormat. |
|
MsgFormat(String s_indent)
Create a MsgFormat. |
Method Summary | |
abstract String |
getFormatted(boolean b_useIndent,
String s_message)
Get the message with all formatting applied. |
String |
getIndent()
Get the current indent text. |
boolean |
hasIndent()
Does this MsgFormat object have any indent text? |
void |
setIndent(String s_indent)
Set the indent text. |
String |
toString()
Get some information about this MsgFormat object. |
Methods inherited from class xbn.XBNObject |
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MsgFormat()
Create a MsgFormat.
Equal to MsgFormat(null)
public MsgFormat(String s_indent)
Create a MsgFormat.
s_indent
- The text that should precede every line of output.Method Detail |
public abstract String getFormatted(boolean b_useIndent, String s_message)
Get the message with all formatting applied.
b_useIndent
- If true, then the indent should be applied. If false, no indent should be used.public final boolean hasIndent()
Does this MsgFormat object have any indent text?
public final void setIndent(String s_indent)
Set the indent text.
Get with getIndent
s_indent
- The indent text. If null, then hasIndent will return false. Otherwise, it will return true.public final String getIndent()
Get the current indent text.
Set with setIndent
public String toString()
Get some information about this MsgFormat object.
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
http://sourceforge.net/projects/xbnjava