Log4j Version 1.2.14: Class PatternParser

Log4j 1.2

Log4j 1.2.14

org.apache.log4j.helpers Class PatternParser

java.lang.Object
  |
  +--org.apache.log4j.helpers.PatternParser

public class PatternParser
extends Object

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

protected  StringBuffer
protected  FormattingInfo
protected  int
protected  String
protected  int
 
 
protected  void
protected  String
protected  int
protected  void
 PatternConverter
 
 

currentLiteral

protected StringBuffer currentLiteral

patternLength

protected int patternLength

i

protected int i

formattingInfo

protected FormattingInfo formattingInfo

pattern

protected String pattern

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.

parse

public PatternConverter parse()

finalizeConverter

protected void finalizeConverter(char c)

addConverter

protected void addConverter(PatternConverter pc)

Log4j 1.2.14

Copyright 2000-2005 Apache Software Foundation.