Home » apache-log4j-1.2.16 » org.apache » log4j » helpers » [javadoc | source]
abstract public class: PatternConverter [javadoc | source]

Direct Known Subclasses:
    LocationPatternConverter, MDCPatternConverter, NamedPatternConverter, CategoryPatternConverter, DatePatternConverter, BasicPatternConverter, UserDirPatternConverter, BridgePatternConverter, ClassNamePatternConverter, LiteralPatternConverter

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
public  PatternConverter next     
 int min     
 int max     
 boolean leftAlign     
static  String[] SPACES     
 protected PatternConverter() 
 protected PatternConverter(FormattingInfo fi) 
Method from org.apache.log4j.helpers.PatternConverter Summary:
convert,   format,   spacePad
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.helpers.PatternConverter Detail:
 abstract protected String convert(LoggingEvent event)
    Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.
 public  void format(StringBuffer sbuf,
    LoggingEvent e) 
    A template method for formatting in a converter specific way.
 public  void spacePad(StringBuffer sbuf,
    int length) 
    Fast space padding method.