org.x4juli.formatter.pattern
Class IntegerPatternConverter
java.lang.Object
org.x4juli.global.components.AbstractComponent
org.x4juli.formatter.pattern.PatternConverter
org.x4juli.formatter.pattern.IntegerPatternConverter
- All Implemented Interfaces:
- Component
- public class IntegerPatternConverter
- extends PatternConverter
Formats an integer.
Logging API as a whole was originally done for Apache log4j. Juli is a
port of main parts of that to complete the Java Logging
APIs. All credits for initial idea, design, implementation,
documentation belong to the log4j crew. This
file was originally published by Curt Arnold. Please use exclusively
the appropriate mailing lists for questions, remarks and
contribution.
- Since:
- 0.5
- Author:
- Boris Unckel
|
Method Summary |
void |
format(java.lang.Object obj,
java.lang.StringBuffer toAppendTo)
Formats an object into a string buffer. |
static IntegerPatternConverter |
newInstance(java.lang.String[] options)
Obtains an instance of pattern converter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INSTANCE
private static final IntegerPatternConverter INSTANCE
- Singleton.
IntegerPatternConverter
private IntegerPatternConverter()
- Private constructor.
newInstance
public static IntegerPatternConverter newInstance(java.lang.String[] options)
- Obtains an instance of pattern converter.
- Parameters:
options - options, may be null.
- Returns:
- instance of pattern converter.
format
public void format(java.lang.Object obj,
java.lang.StringBuffer toAppendTo)
- Formats an object into a string buffer.
- Specified by:
format in class PatternConverter
- Parameters:
obj - event to format, may not be null.toAppendTo - string buffer to which the formatted event will be
appended. May not be null.
${license_html}