Package org.apache.james.mime4j.field
Class DateTimeFieldLenientImpl
- java.lang.Object
-
- org.apache.james.mime4j.field.AbstractField
-
- org.apache.james.mime4j.field.DateTimeFieldLenientImpl
-
- All Implemented Interfaces:
DateTimeField
,ParsedField
,Field
public class DateTimeFieldLenientImpl extends AbstractField implements DateTimeField
Date-time field such asDate
orResent-Date
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Date
date
private static int
INITIAL_YEAR
private boolean
parsed
static FieldParser<DateTimeField>
PARSER
static java.time.format.DateTimeFormatter
RFC_5322
-
Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DateTimeFieldLenientImpl(Field rawField, DecodeMonitor monitor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.Map<java.lang.Long,java.lang.String>
dayOfWeek()
java.util.Date
getDate()
private static java.util.Map<java.lang.Long,java.lang.String>
monthOfYear()
private void
parse()
-
Methods inherited from class org.apache.james.mime4j.field.AbstractField
getBody, getName, getNameLowerCase, getParseException, getRaw, getRawField, isValidField, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.james.mime4j.stream.Field
getBody, getName, getNameLowerCase, getRaw
-
Methods inherited from interface org.apache.james.mime4j.dom.field.ParsedField
bodyDescriptionField, getParseException, isValidField
-
-
-
-
Field Detail
-
INITIAL_YEAR
private static final int INITIAL_YEAR
- See Also:
- Constant Field Values
-
RFC_5322
public static final java.time.format.DateTimeFormatter RFC_5322
-
parsed
private boolean parsed
-
date
private java.util.Date date
-
PARSER
public static final FieldParser<DateTimeField> PARSER
-
-
Constructor Detail
-
DateTimeFieldLenientImpl
private DateTimeFieldLenientImpl(Field rawField, DecodeMonitor monitor)
-
-
Method Detail
-
monthOfYear
private static java.util.Map<java.lang.Long,java.lang.String> monthOfYear()
-
dayOfWeek
private static java.util.Map<java.lang.Long,java.lang.String> dayOfWeek()
-
getDate
public java.util.Date getDate()
- Specified by:
getDate
in interfaceDateTimeField
-
parse
private void parse()
-
-