public abstract class PatternConverter extends Object
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.
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
leftAlign |
(package private) int |
max |
(package private) int |
min |
PatternConverter |
next |
(package private) static String[] |
SPACES |
Modifier | Constructor and Description |
---|---|
protected |
PatternConverter() |
protected |
PatternConverter(FormattingInfo fi) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
convert(LoggingEvent event)
Derived pattern converters must override this method in order to
convert conversion specifiers in the correct way.
|
void |
format(StringBuffer sbuf,
LoggingEvent e)
A template method for formatting in a converter specific way.
|
void |
spacePad(StringBuffer sbuf,
int length)
Fast space padding method.
|
public PatternConverter next
int min
int max
boolean leftAlign
protected PatternConverter()
protected PatternConverter(FormattingInfo fi)
protected abstract String convert(LoggingEvent event)
public void format(StringBuffer sbuf, LoggingEvent e)
public void spacePad(StringBuffer sbuf, int length)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses