Package org.apache.log4j.helpers
Class PatternParser
java.lang.Object
org.apache.log4j.helpers.PatternParser
- Direct Known Subclasses:
BridgePatternParser
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
.
- Since:
- 0.8.2
- Author:
- James P. Cakalic, Ceki Gülcü, Anders Kristensen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBuffer
protected FormattingInfo
protected int
protected String
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected String
protected int
The option is expected to be in decimal and positive.protected void
finalizeConverter
(char c) parse()
-
Field Details
-
currentLiteral
-
patternLength
protected int patternLength -
i
protected int i -
formattingInfo
-
pattern
-
-
Constructor Details
-
PatternParser
-
-
Method Details
-
extractOption
-
extractPrecisionOption
protected int extractPrecisionOption()The option is expected to be in decimal and positive. In case of error, zero is returned. -
parse
-
finalizeConverter
protected void finalizeConverter(char c) -
addConverter
-