org.apache.log4j.helpers
Class PatternParser
public class PatternParser
Most of the work of the
PatternLayout
class
is delegated to the PatternParser class.
It is this class that parses conversion patterns and creates
a chained list of
OptionConverters
.
currentLiteral
protected StringBuffer currentLiteral
pattern
protected String pattern
patternLength
protected int patternLength
PatternParser
public PatternParser(String pattern)
extractOption
protected String extractOption()
extractPrecisionOption
protected int extractPrecisionOption()
The option is expected to be in decimal and positive. In case of
error, zero is returned.
finalizeConverter
protected void finalizeConverter(char c)
Copyright 2000-2005 Apache Software Foundation.