Class FastDateParser.CopyQuotedStrategy
- java.lang.Object
-
- org.apache.logging.log4j.core.util.datetime.FastDateParser.Strategy
-
- org.apache.logging.log4j.core.util.datetime.FastDateParser.CopyQuotedStrategy
-
- Enclosing class:
- FastDateParser
private static class FastDateParser.CopyQuotedStrategy extends FastDateParser.Strategy
A strategy that copies the static or quoted field in the parsing pattern
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringformatField
-
Constructor Summary
Constructors Constructor Description CopyQuotedStrategy(java.lang.String formatField)Construct a Strategy that ensures the formatField has literal text
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanisNumber()Is this field a number? The default implementation returns false.(package private) booleanparse(FastDateParser parser, java.util.Calendar calendar, java.lang.String source, java.text.ParsePosition pos, int maxWidth)
-
-
-
Method Detail
-
isNumber
boolean isNumber()
Is this field a number? The default implementation returns false.- Overrides:
isNumberin classFastDateParser.Strategy- Returns:
- true, if field is a number
-
parse
boolean parse(FastDateParser parser, java.util.Calendar calendar, java.lang.String source, java.text.ParsePosition pos, int maxWidth)
- Specified by:
parsein classFastDateParser.Strategy
-
-