Class InstantFormatter.Log4jFixedFormatter
- java.lang.Object
-
- org.apache.logging.log4j.layout.template.json.util.InstantFormatter.Log4jFixedFormatter
-
- All Implemented Interfaces:
InstantFormatter.Formatter
- Enclosing class:
- InstantFormatter
private static final class InstantFormatter.Log4jFixedFormatter extends java.lang.Object implements InstantFormatter.Formatter
-
-
Field Summary
Fields Modifier and Type Field Description private char[]bufferprivate FixedDateFormatformatter
-
Constructor Summary
Constructors Modifier Constructor Description privateLog4jFixedFormatter(FixedDateFormat formatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidformat(Instant instant, java.lang.StringBuilder stringBuilder)java.lang.Class<?>getInternalImplementationClass()booleanisInstantMatching(Instant instant1, Instant instant2)
-
-
-
Field Detail
-
formatter
private final FixedDateFormat formatter
-
buffer
private final char[] buffer
-
-
Constructor Detail
-
Log4jFixedFormatter
private Log4jFixedFormatter(FixedDateFormat formatter)
-
-
Method Detail
-
getInternalImplementationClass
public java.lang.Class<?> getInternalImplementationClass()
- Specified by:
getInternalImplementationClassin interfaceInstantFormatter.Formatter
-
format
public void format(Instant instant, java.lang.StringBuilder stringBuilder)
- Specified by:
formatin interfaceInstantFormatter.Formatter
-
isInstantMatching
public boolean isInstantMatching(Instant instant1, Instant instant2)
- Specified by:
isInstantMatchingin interfaceInstantFormatter.Formatter
-
-