public class PatternParser extends Object
PatternLayout
class is delegated to the PatternParser class.
It is this class that parses conversion patterns and creates a chained list of OptionConverters
.
Modifier and Type | Field and Description |
---|---|
protected StringBuffer |
currentLiteral |
protected FormattingInfo |
formattingInfo |
protected int |
i |
protected String |
pattern |
protected int |
patternLength |
Constructor and Description |
---|
PatternParser(String pattern) |
Modifier and Type | Method and Description |
---|---|
protected void |
addConverter(PatternConverter pc) |
protected String |
extractOption() |
protected int |
extractPrecisionOption()
The option is expected to be in decimal and positive.
|
protected void |
finalizeConverter(char c) |
PatternConverter |
parse() |
protected StringBuffer currentLiteral
protected int patternLength
protected int i
protected FormattingInfo formattingInfo
protected String pattern
public PatternParser(String pattern)
protected String extractOption()
protected int extractPrecisionOption()
public PatternConverter parse()
protected void finalizeConverter(char c)
protected void addConverter(PatternConverter pc)
Copyright © 1999-2024 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.