public final class PatternParser extends Object
EnhancedPatternLayout
class is delegated to the PatternParser
class.
It is this class that parses conversion patterns and creates a chained list of
PatternConverters
.
Modifier and Type | Method and Description |
---|---|
static Map |
getFileNamePatternRules()
Get standard format specifiers for rolling file appender file specification.
|
static Map |
getPatternLayoutRules()
Get standard format specifiers for EnhancedPatternLayout.
|
static void |
parse(String pattern,
List patternConverters,
List formattingInfos,
Map converterRegistry,
Map rules)
Parse a format specifier.
|
public static Map getPatternLayoutRules()
public static Map getFileNamePatternRules()
public static void parse(String pattern, List patternConverters, List formattingInfos, Map converterRegistry, Map rules)
pattern
- pattern to parse.patternConverters
- list to receive pattern converters.formattingInfos
- list to receive field specifiers corresponding to pattern converters.converterRegistry
- map of user-supported pattern converters keyed by format specifier, may be null.rules
- map of stock pattern converters keyed by format specifier.Copyright © 1999–2023 QOS.CH Sarl (Switzerland). All rights reserved.