|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.karaf.shell.log.layout.PatternConverter
public abstract class PatternConverter
PatternConverter is an abtract class that provides the formatting functionality that derived classes need.
Conversion specifiers in a conversion patterns are parsed to individual PatternConverters. Each of which is responsible for converting a logging event in a converter specific manner.
Field Summary | |
---|---|
PatternConverter |
next
|
Constructor Summary | |
---|---|
protected |
PatternConverter()
|
protected |
PatternConverter(FormattingInfo fi)
|
Method Summary | |
---|---|
protected abstract java.lang.String |
convert(org.ops4j.pax.logging.spi.PaxLoggingEvent event)
Derived pattern converters must override this method in order to convert conversion specifiers in the correct way. |
void |
format(java.lang.StringBuffer sbuf,
org.ops4j.pax.logging.spi.PaxLoggingEvent e)
A template method for formatting in a converter specific way. |
void |
spacePad(java.lang.StringBuffer sbuf,
int length)
Fast space padding method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public PatternConverter next
Constructor Detail |
---|
protected PatternConverter()
protected PatternConverter(FormattingInfo fi)
Method Detail |
---|
protected abstract java.lang.String convert(org.ops4j.pax.logging.spi.PaxLoggingEvent event)
public void format(java.lang.StringBuffer sbuf, org.ops4j.pax.logging.spi.PaxLoggingEvent e)
public void spacePad(java.lang.StringBuffer sbuf, int length)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |