|
PTLog API - 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jp.ne.dti.lares.foozy.ptlog.format.DefaultUniversalFormatter
Default implementation.
This delegates request to another which registered by
setByteFormatter(jp.ne.dti.lares.foozy.ptlog.format.ByteFormatter)
or the other methods.
Field Summary |
Fields inherited from interface jp.ne.dti.lares.foozy.ptlog.format.BufferFormatter |
DELIMITER_ADD, DELIMITER_MESSAGE, DELIMITER_VALUE |
Constructor Summary | |
DefaultUniversalFormatter()
Constructor. |
Method Summary | |
boolean |
accepts(java.lang.Object value)
Return true always. |
void |
addObjectFormatter(ObjectFormatter formatter)
Add specified one to list as formatter candidate. |
java.lang.String |
enter(java.lang.String subject,
java.lang.String method)
Format specified value. |
java.lang.String |
exit(java.lang.String subject,
java.lang.String method)
Format specified value. |
java.lang.String |
format(byte value)
Format specified value. |
java.lang.String |
format(java.lang.Byte value)
Format specified value. |
java.lang.String |
format(char value)
Format specified value. |
java.lang.String |
format(java.lang.Character value)
Format specified value. |
java.lang.String |
format(double value)
Format specified value. |
java.lang.String |
format(java.lang.Double value)
Format specified value. |
java.lang.String |
format(float value)
Format specified value. |
java.lang.String |
format(java.lang.Float value)
Format specified value. |
java.lang.String |
format(int value)
Format specified value. |
java.lang.String |
format(java.lang.Integer value)
Format specified value. |
java.lang.String |
format(long value)
Format specified value. |
java.lang.String |
format(java.lang.Long value)
Format specified value. |
java.lang.String |
format(java.lang.Object value)
Format specified object. |
java.lang.String |
format(short value)
Format specified value. |
java.lang.String |
format(java.lang.Short value)
Format specified value. |
java.lang.String |
getDelimiter(int type)
Get delimter for specified type. |
java.lang.String |
pass(java.lang.String subject,
java.lang.String method,
java.lang.String checkpoint)
Format specified value. |
void |
setBufferFormatter(BufferFormatter formatter)
|
void |
setByteFormatter(ByteFormatter formatter)
Set ByteFormatter .
|
void |
setCharFormatter(CharFormatter formatter)
Set CharFormatter .
|
void |
setDoubleFormatter(DoubleFormatter formatter)
Set DoubleFormatter .
|
void |
setFloatFormatter(FloatFormatter formatter)
Set FloatFormatter .
|
void |
setIntFormatter(IntFormatter formatter)
Set IntFormatter .
|
void |
setLongFormatter(LongFormatter formatter)
Set LongFormatter .
|
void |
setObjectFormatter(ObjectFormatter formatter)
Clear all registered ObjectFormatter s
and add specified one.
|
void |
setShortFormatter(ShortFormatter formatter)
Set ShortFormatter .
|
void |
setTraceFormatter(TraceFormatter formatter)
Set TraceFormatter .
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultUniversalFormatter()
Method Detail |
public final void setByteFormatter(ByteFormatter formatter)
ByteFormatter
.
"null" means DefaultByteFormatter.S_DEC
.
public final void setCharFormatter(CharFormatter formatter)
CharFormatter
.
"null" means DefaultCharFormatter.CHAR
.
public final void setShortFormatter(ShortFormatter formatter)
ShortFormatter
.
"null" means DefaultShortFormatter.S_DEC
.
public final void setIntFormatter(IntFormatter formatter)
IntFormatter
.
"null" means DefaultIntFormatter.S_DEC
.
public final void setLongFormatter(LongFormatter formatter)
LongFormatter
.
"null" means DefaultLongFormatter.S_DEC
.
public final void setFloatFormatter(FloatFormatter formatter)
FloatFormatter
.
"null" means DefaultFloatFormatter.INSTANCE
.
public final void setDoubleFormatter(DoubleFormatter formatter)
DoubleFormatter
.
"null" means DefaultDoubleFormatter.INSTANCE
.
public final void setTraceFormatter(TraceFormatter formatter)
TraceFormatter
.
"null" means DefaultTraceFormatter.INSTANCE
.
public final void setObjectFormatter(ObjectFormatter formatter)
ObjectFormatter
s
and add specified one.
"null" causes only clearing.
ATTENTION:This does not suppose simultaneous invocation.
addObjectFormatter(jp.ne.dti.lares.foozy.ptlog.format.ObjectFormatter)
,
format(Object)
public final void addObjectFormatter(ObjectFormatter formatter)
ATTENTION:This does not suppose simultaneous invocation.
setObjectFormatter(jp.ne.dti.lares.foozy.ptlog.format.ObjectFormatter)
,
format(Object)
public final void setBufferFormatter(BufferFormatter formatter)
public java.lang.String format(byte value)
format
in interface ByteFormatter
setByteFormatter(jp.ne.dti.lares.foozy.ptlog.format.ByteFormatter)
public java.lang.String format(java.lang.Byte value)
format
in interface ByteFormatter
setByteFormatter(jp.ne.dti.lares.foozy.ptlog.format.ByteFormatter)
public java.lang.String format(char value)
format
in interface CharFormatter
setCharFormatter(jp.ne.dti.lares.foozy.ptlog.format.CharFormatter)
public java.lang.String format(java.lang.Character value)
format
in interface CharFormatter
setCharFormatter(jp.ne.dti.lares.foozy.ptlog.format.CharFormatter)
public java.lang.String format(short value)
format
in interface ShortFormatter
setShortFormatter(jp.ne.dti.lares.foozy.ptlog.format.ShortFormatter)
public java.lang.String format(java.lang.Short value)
format
in interface ShortFormatter
setShortFormatter(jp.ne.dti.lares.foozy.ptlog.format.ShortFormatter)
public java.lang.String format(int value)
format
in interface IntFormatter
setIntFormatter(jp.ne.dti.lares.foozy.ptlog.format.IntFormatter)
public java.lang.String format(java.lang.Integer value)
format
in interface IntFormatter
setIntFormatter(jp.ne.dti.lares.foozy.ptlog.format.IntFormatter)
public java.lang.String format(long value)
format
in interface LongFormatter
setLongFormatter(jp.ne.dti.lares.foozy.ptlog.format.LongFormatter)
public java.lang.String format(java.lang.Long value)
format
in interface LongFormatter
setLongFormatter(jp.ne.dti.lares.foozy.ptlog.format.LongFormatter)
public java.lang.String format(float value)
format
in interface FloatFormatter
setFloatFormatter(jp.ne.dti.lares.foozy.ptlog.format.FloatFormatter)
public java.lang.String format(java.lang.Float value)
format
in interface FloatFormatter
setFloatFormatter(jp.ne.dti.lares.foozy.ptlog.format.FloatFormatter)
public java.lang.String format(double value)
format
in interface DoubleFormatter
setDoubleFormatter(jp.ne.dti.lares.foozy.ptlog.format.DoubleFormatter)
public java.lang.String format(java.lang.Double value)
format
in interface DoubleFormatter
setDoubleFormatter(jp.ne.dti.lares.foozy.ptlog.format.DoubleFormatter)
public java.lang.String enter(java.lang.String subject, java.lang.String method)
enter
in interface TraceFormatter
subject
- of logging request.method
- from which logging is requested.setTraceFormatter(jp.ne.dti.lares.foozy.ptlog.format.TraceFormatter)
public java.lang.String exit(java.lang.String subject, java.lang.String method)
exit
in interface TraceFormatter
subject
- of logging request.method
- from which logging is requested.setTraceFormatter(jp.ne.dti.lares.foozy.ptlog.format.TraceFormatter)
public java.lang.String pass(java.lang.String subject, java.lang.String method, java.lang.String checkpoint)
pass
in interface TraceFormatter
subject
- of logging request.method
- from which logging is requested.checkpoint
- to passsetTraceFormatter(jp.ne.dti.lares.foozy.ptlog.format.TraceFormatter)
public boolean accepts(java.lang.Object value)
accepts
in interface UniversalFormatter
public java.lang.String format(java.lang.Object value)
DefaultObjectFormatter.INSTANCE
if specified one is null or instance of java.lang.String
ObjectFormatter.accepts(java.lang.Object)
on each
registered formatters
, and
DefaultObjectFormatter.INSTANCE
if no one accepts specified object
format
in interface UniversalFormatter
public java.lang.String getDelimiter(int type)
BufferFormatter
Specified "type" must be one of below.
getDelimiter
in interface BufferFormatter
type
- of delimiter
|
PTLog API - 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |