Top Description Inners Fields Constructors Methods
javax.mail.internet

public Class MailDateFormat

extends SimpleDateFormat
Class Inheritance
Imports
java.io.IOException, .ObjectInputStream, .ObjectStreamException, java.util.Date, .Calendar, .Locale, .TimeZone, java.util.logging.Level, java.text.DateFormatSymbols, .SimpleDateFormat, .NumberFormat, .FieldPosition, .ParsePosition, .ParseException, com.sun.mail.util.MailLogger

Formats and parses date specification based on RFC 2822.

This class does not support methods that influence the format. It always formats the date based on the specification below.

3.3. Date and Time Specification

Date and time occur in several header fields. This section specifies the syntax for a full date and time specification. Though folding white space is permitted throughout the date-time specification, it is RECOMMENDED that a single space be used in each place that FWS appears (whether it is required or optional); some older implementations may not interpret other occurrences of folding white space correctly.

date-time       =       [ day-of-week "," ] date FWS time [CFWS]

day-of-week     =       ([FWS] day-name) / obs-day-of-week

day-name        =       "Mon" / "Tue" / "Wed" / "Thu" /
                        "Fri" / "Sat" / "Sun"

date            =       day month year

year            =       4*DIGIT / obs-year

month           =       (FWS month-name FWS) / obs-month

month-name      =       "Jan" / "Feb" / "Mar" / "Apr" /
                        "May" / "Jun" / "Jul" / "Aug" /
                        "Sep" / "Oct" / "Nov" / "Dec"

day             =       ([FWS] 1*2DIGIT) / obs-day

time            =       time-of-day FWS zone

time-of-day     =       hour ":" minute [ ":" second ]

hour            =       2DIGIT / obs-hour

minute          =       2DIGIT / obs-minute

second          =       2DIGIT / obs-second

zone            =       (( "+" / "-" ) 4DIGIT) / obs-zone
The day is the numeric day of the month. The year is any numeric year 1900 or later.

The time-of-day specifies the number of hours, minutes, and optionally seconds since midnight of the date indicated.

The date and time-of-day SHOULD express local time.

The zone specifies the offset from Coordinated Universal Time (UTC, formerly referred to as "Greenwich Mean Time") that the date and time-of-day represent. The "+" or "-" indicates whether the time-of-day is ahead of (i.e., east of) or behind (i.e., west of) Universal Time. The first two digits indicate the number of hours difference from Universal Time, and the last two digits indicate the number of minutes difference from Universal Time. (Hence, +hhmm means +(hh * 60 + mm) minutes, and -hhmm means -(hh * 60 + mm) minutes). The form "+0000" SHOULD be used to indicate a time zone at Universal Time. Though "-0000" also indicates Universal Time, it is used to indicate that the time was generated on a system that may be in a local time zone other than Universal Time and therefore indicates that the date-time contains no information about the local time zone.

A date-time specification MUST be semantically valid. That is, the day-of-the-week (if included) MUST be the day implied by the date, the numeric day-of-month MUST be between 1 and the number of days allowed for the specified month (in the specified year), the time-of-day MUST be in the range 00:00:00 through 23:59:60 (the number of seconds allowing for a leap second; see [STD12]), and the zone MUST be within the range -9959 through +9959.

Synchronization

Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.

Authors
Anthony Vanelverdinghe, Max Spivak
Since
JavaMail 1.2

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract static class
MailDateFormat.AbstractDateParser

This class provides the building blocks for date parsing.

private class
private class

Field Summary

Modifier and TypeField and Description
private static final int
private static final MailLogger
private static final String
private static final long
private static final int
private static final TimeZone

Constructor Summary

AccessConstructor and Description
public
MailDateFormat()

Create a new date format for the RFC2822 specification with lenient parsing.

Method Summary

Modifier and TypeMethod and Description
public void
applyLocalizedPattern(String
a String to be mapped to the new date and time format pattern for this format
pattern
)

Overrides java.text.SimpleDateFormat.applyLocalizedPattern.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates a specific pattern.
public void
applyPattern(String
the new date and time pattern for this date format
pattern
)

Overrides java.text.SimpleDateFormat.applyPattern.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates a specific pattern.
public MailDateFormat

Returns:

a clone of this instance
clone
()

Overrides java.text.SimpleDateFormat.clone.

Overrides Cloneable.
public StringBuffer

Returns:

StringBuffer the formatted String
format
(Date
the Date object
date
,
StringBuffer
the formatted string
dateStrBuf
,
FieldPosition
the current field position
fieldPosition
)

Overrides java.text.SimpleDateFormat.format.

Formats the given date in the format specified by RFC 2822 in the current TimeZone.
public Date

Returns:

the start of the 100-year period into which two digit years are parsed
get2DigitYearStart
()

Overrides java.text.SimpleDateFormat.get2DigitYearStart.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates another strategy for interpreting 2-digits years.
public Date

Returns:

Date the parsed date. In case of error, returns null.
parse
(String
the formatted date to be parsed
text
,
ParsePosition
the current parse position
pos
)

Overrides java.text.SimpleDateFormat.parse.

Parses the given date in the format specified by RFC 2822.
private void
readObject(ObjectInputStream
the stream containing the serialized object
in
)

Hides java.text.SimpleDateFormat.readObject.

Allows to deserialize instances that were serialized with the previous implementation.
public void
set2DigitYearStart(Date
During parsing, two digit years will be placed in the range startDate to startDate + 100 years.
startDate
)

Overrides java.text.SimpleDateFormat.set2DigitYearStart.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates another strategy for interpreting 2-digits years.
public void
setCalendar(Calendar
the new Calendar to be used by the date format
newCalendar
)

Overrides java.text.DateFormat.setCalendar.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates a specific calendar.
public void
setDateFormatSymbols(DateFormatSymbols
the new date and time format symbols
newFormatSymbols
)

Overrides java.text.SimpleDateFormat.setDateFormatSymbols.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates specific date format symbols.
public void
setNumberFormat(NumberFormat
the given new NumberFormat.
newNumberFormat
)

Overrides java.text.DateFormat.setNumberFormat.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates a specific number format.
private void
superApplyPattern(String pattern)

This method allows serialization to change the pattern.

private Date

Returns:

the date, as specified by the parameters
toDate
(int dayName, int day, int month, int year, int hour, int minute, int second, int zone)

Returns the date, as specified by the parameters.

private Object

Returns:

the object to be serialized
writeReplace
()

Allows to serialize instances such that they are deserializable with the previous implementation.

Inherited from java.text.SimpleDateFormat:
equalsformatToCharacterIteratorgetDateFormatSymbolshashCodetoLocalizedPatterntoPattern

Field Detail

LEAP_SECONDback to summary
private static final int LEAP_SECOND
LOGGERback to summary
private static final MailLogger LOGGER
PATTERNback to summary
private static final String PATTERN
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.text.SimpleDateFormat.serialVersionUID.

UNKNOWN_DAY_NAMEback to summary
private static final int UNKNOWN_DAY_NAME
UTCback to summary
private static final TimeZone UTC

Constructor Detail

MailDateFormatback to summary
public MailDateFormat()

Create a new date format for the RFC2822 specification with lenient parsing.

Method Detail

applyLocalizedPatternback to summary
public void applyLocalizedPattern(String pattern)

Overrides java.text.SimpleDateFormat.applyLocalizedPattern.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates a specific pattern.

Parameters
pattern:String

Doc from java.text.SimpleDateFormat.applyLocalizedPattern.

a String to be mapped to the new date and time format pattern for this format

Annotations
@Override
Exceptions
UnsupportedOperationException:
if this method is invoked
Since
JavaMail 1.6
applyPatternback to summary
public void applyPattern(String pattern)

Overrides java.text.SimpleDateFormat.applyPattern.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates a specific pattern.

Parameters
pattern:String

Doc from java.text.SimpleDateFormat.applyPattern.

the new date and time pattern for this date format

Annotations
@Override
Exceptions
UnsupportedOperationException:
if this method is invoked
Since
JavaMail 1.6
cloneback to summary
public MailDateFormat clone()

Overrides java.text.SimpleDateFormat.clone.

Overrides Cloneable.

Returns:MailDateFormat

a clone of this instance

Annotations
@Override
Since
JavaMail 1.6
formatback to summary
public StringBuffer format(Date date, StringBuffer dateStrBuf, FieldPosition fieldPosition)

Overrides java.text.SimpleDateFormat.format.

Formats the given date in the format specified by RFC 2822 in the current TimeZone.

Parameters
date:Date

the Date object

dateStrBuf:StringBuffer

the formatted string

fieldPosition:FieldPosition

the current field position

Returns:StringBuffer

StringBuffer the formatted String

Annotations
@Override
Since
JavaMail 1.2
get2DigitYearStartback to summary
public Date get2DigitYearStart()

Overrides java.text.SimpleDateFormat.get2DigitYearStart.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates another strategy for interpreting 2-digits years.

Returns:Date

the start of the 100-year period into which two digit years are parsed

Annotations
@Override
Exceptions
UnsupportedOperationException:
if this method is invoked
Since
JavaMail 1.6
parseback to summary
public Date parse(String text, ParsePosition pos)

Overrides java.text.SimpleDateFormat.parse.

Parses the given date in the format specified by RFC 2822.

  • With strict parsing, obs-* tokens are unsupported. Lenient parsing supports obs-year and obs-zone, with the exception of the 1-character military time zones.
  • The optional CFWS token at the end is not parsed.
  • RFC 2822 specifies that a zone of "-0000" indicates that the date-time contains no information about the local time zone. This class uses the UTC time zone in this case.
Parameters
text:String

the formatted date to be parsed

pos:ParsePosition

the current parse position

Returns:Date

Date the parsed date. In case of error, returns null.

Annotations
@Override
Since
JavaMail 1.2
readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException

Hides java.text.SimpleDateFormat.readObject.

Allows to deserialize instances that were serialized with the previous implementation.

Parameters
in:ObjectInputStream

the stream containing the serialized object

Exceptions
IOException:
on read failures
ClassNotFoundException:
never
set2DigitYearStartback to summary
public void set2DigitYearStart(Date startDate)

Overrides java.text.SimpleDateFormat.set2DigitYearStart.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates another strategy for interpreting 2-digits years.

Parameters
startDate:Date

Doc from java.text.SimpleDateFormat.set2DigitYearStart.

During parsing, two digit years will be placed in the range startDate to startDate + 100 years.

Annotations
@Override
Exceptions
UnsupportedOperationException:
if this method is invoked
Since
JavaMail 1.6
setCalendarback to summary
public void setCalendar(Calendar newCalendar)

Overrides java.text.DateFormat.setCalendar.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates a specific calendar.

Parameters
newCalendar:Calendar

Doc from java.text.DateFormat.setCalendar.

the new Calendar to be used by the date format

Annotations
@Override
Exceptions
UnsupportedOperationException:
if this method is invoked
setDateFormatSymbolsback to summary
public void setDateFormatSymbols(DateFormatSymbols newFormatSymbols)

Overrides java.text.SimpleDateFormat.setDateFormatSymbols.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates specific date format symbols.

Parameters
newFormatSymbols:DateFormatSymbols

Doc from java.text.SimpleDateFormat.setDateFormatSymbols.

the new date and time format symbols

Annotations
@Override
Exceptions
UnsupportedOperationException:
if this method is invoked
Since
JavaMail 1.6
setNumberFormatback to summary
public void setNumberFormat(NumberFormat newNumberFormat)

Overrides java.text.DateFormat.setNumberFormat.

This method always throws an UnsupportedOperationException and should not be used because RFC 2822 mandates a specific number format.

Parameters
newNumberFormat:NumberFormat

Doc from java.text.DateFormat.setNumberFormat.

the given new NumberFormat.

Annotations
@Override
Exceptions
UnsupportedOperationException:
if this method is invoked
superApplyPatternback to summary
private void superApplyPattern(String pattern)

This method allows serialization to change the pattern.

toDateback to summary
private Date toDate(int dayName, int day, int month, int year, int hour, int minute, int second, int zone)

Returns the date, as specified by the parameters.

Returns:Date

the date, as specified by the parameters

Exceptions
IllegalArgumentException:
if this instance's Calendar is non-lenient and any of the parameters have invalid values, or if dayName is not consistent with day-month-year
writeReplaceback to summary
private Object writeReplace() throws ObjectStreamException

Allows to serialize instances such that they are deserializable with the previous implementation.

Returns:Object

the object to be serialized

Exceptions
ObjectStreamException:
never
javax.mail.internet back to summary

private abstract Class MailDateFormat.AbstractDateParser

extends Object
Class Inheritance
Known Direct Subclasses
javax.mail.internet.MailDateFormat.Rfc2822StrictParser

This class provides the building blocks for date parsing.

It has the following invariants:

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv final ParsePosition
pack-priv final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv final int
pack-priv final int
pack-priv boolean
isValidZoneOffset(int offset)

pack-priv final Date
pack-priv final int
parseAsciiDigits(int count)

pack-priv final int
parseAsciiDigits(int min, int max)

pack-priv final int
parseAsciiDigits(int min, int max, boolean isEOF)

pack-priv final void
parseChar(char ch)

pack-priv final int

Returns:

the java.util.Calendar constant for the parsed day name
parseDayName
()

pack-priv final void
pack-priv final int

Returns:

the java.util.Calendar constant for the parsed month name
parseMonthName
(boolean caseSensitive)

pack-priv final int

Returns:

the number of minutes to be added to the time in the local time zone, in order to obtain the equivalent time in the UTC time zone. Returns 0 if the date-time contains no information about the local time zone.
parseZoneOffset
()

pack-priv final boolean
pack-priv final boolean
peekChar(char ch)

pack-priv boolean
pack-priv final boolean
skipAlternative(char standard, char alternative)

pack-priv final boolean
skipAlternativePair(char firstStandard, char firstAlternative, char secondStandard, char secondAlternative)

pack-priv final boolean
skipAlternativeTriple(char firstStandard, char firstAlternative, char secondStandard, char secondAlternative, char thirdStandard, char thirdAlternative)

pack-priv final boolean
skipChar(char ch)

pack-priv boolean
pack-priv final boolean
pack-priv final boolean
skipPair(char first, char second)

pack-priv final boolean
pack-priv abstract Date
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INVALID_CHARback to summary
pack-priv static final int INVALID_CHAR
MAX_YEAR_DIGITSback to summary
pack-priv static final int MAX_YEAR_DIGITS
posback to summary
pack-priv final ParsePosition pos
textback to summary
pack-priv final String text

Constructor Detail

AbstractDateParserback to summary
pack-priv AbstractDateParser(String text, ParsePosition pos)

Method Detail

getAsciiDigitback to summary
pack-priv final int getAsciiDigit()
getCharback to summary
pack-priv final int getChar()
isValidZoneOffsetback to summary
pack-priv boolean isValidZoneOffset(int offset)
parseback to summary
pack-priv final Date parse()
parseAsciiDigitsback to summary
pack-priv final int parseAsciiDigits(int count) throws ParseException
parseAsciiDigitsback to summary
pack-priv final int parseAsciiDigits(int min, int max) throws ParseException
parseAsciiDigitsback to summary
pack-priv final int parseAsciiDigits(int min, int max, boolean isEOF) throws ParseException
parseCharback to summary
pack-priv final void parseChar(char ch) throws ParseException
parseDayNameback to summary
pack-priv final int parseDayName() throws ParseException
Returns:int

the java.util.Calendar constant for the parsed day name

parseFoldingWhiteSpaceback to summary
pack-priv final void parseFoldingWhiteSpace() throws ParseException
parseMonthNameback to summary
pack-priv final int parseMonthName(boolean caseSensitive) throws ParseException
Returns:int

the java.util.Calendar constant for the parsed month name

Annotations
@SuppressWarnings:fallthrough
parseZoneOffsetback to summary
pack-priv final int parseZoneOffset() throws ParseException
Returns:int

the number of minutes to be added to the time in the local time zone, in order to obtain the equivalent time in the UTC time zone. Returns 0 if the date-time contains no information about the local time zone.

peekAsciiDigitback to summary
pack-priv final boolean peekAsciiDigit()
peekCharback to summary
pack-priv final boolean peekChar(char ch)
peekFoldingWhiteSpaceback to summary
pack-priv boolean peekFoldingWhiteSpace()
skipAlternativeback to summary
pack-priv final boolean skipAlternative(char standard, char alternative)
skipAlternativePairback to summary
pack-priv final boolean skipAlternativePair(char firstStandard, char firstAlternative, char secondStandard, char secondAlternative)
skipAlternativeTripleback to summary
pack-priv final boolean skipAlternativeTriple(char firstStandard, char firstAlternative, char secondStandard, char secondAlternative, char thirdStandard, char thirdAlternative)
skipCharback to summary
pack-priv final boolean skipChar(char ch)
skipFoldingWhiteSpaceback to summary
pack-priv boolean skipFoldingWhiteSpace()
skipNewlineback to summary
pack-priv final boolean skipNewline()
skipPairback to summary
pack-priv final boolean skipPair(char first, char second)
skipWhiteSpaceback to summary
pack-priv final boolean skipWhiteSpace()
tryParseback to summary
pack-priv abstract Date tryParse() throws ParseException
javax.mail.internet back to summary

private Class MailDateFormat.Rfc2822LenientParser

extends Rfc2822StrictParser
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
pack-priv boolean
pack-priv int
pack-priv void
pack-priv void
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv boolean
pack-priv boolean
Inherited from javax.mail.internet.MailDateFormat.Rfc2822StrictParser:
parseMonthtryParse

Field Detail

hasDefaultFwsback to summary
private Boolean hasDefaultFws

Constructor Detail

Rfc2822LenientParserback to summary
pack-priv Rfc2822LenientParser(String text, ParsePosition pos)

Method Detail

isMonthNameCaseSensitiveback to summary
pack-priv boolean isMonthNameCaseSensitive()

Overrides javax.mail.internet.MailDateFormat.Rfc2822StrictParser.isMonthNameCaseSensitive.

Annotations
@Override
isValidZoneOffsetback to summary
pack-priv boolean isValidZoneOffset(int offset)

Overrides javax.mail.internet.MailDateFormat.AbstractDateParser.isValidZoneOffset.

Annotations
@Override
parseDayback to summary
pack-priv int parseDay() throws ParseException

Overrides javax.mail.internet.MailDateFormat.Rfc2822StrictParser.parseDay.

Annotations
@Override
parseFwsBetweenTimeOfDayAndZoneback to summary
pack-priv void parseFwsBetweenTimeOfDayAndZone() throws ParseException

Overrides javax.mail.internet.MailDateFormat.Rfc2822StrictParser.parseFwsBetweenTimeOfDayAndZone.

Annotations
@Override
parseFwsInMonthback to summary
pack-priv void parseFwsInMonth() throws ParseException

Overrides javax.mail.internet.MailDateFormat.Rfc2822StrictParser.parseFwsInMonth.

Annotations
@Override
parseHourback to summary
pack-priv int parseHour() throws ParseException

Overrides javax.mail.internet.MailDateFormat.Rfc2822StrictParser.parseHour.

Annotations
@Override
parseMinuteback to summary
pack-priv int parseMinute() throws ParseException

Overrides javax.mail.internet.MailDateFormat.Rfc2822StrictParser.parseMinute.

Annotations
@Override
parseOptionalBeginback to summary
pack-priv int parseOptionalBegin()

Overrides javax.mail.internet.MailDateFormat.Rfc2822StrictParser.parseOptionalBegin.

Returns:int

Doc from javax.mail.internet.MailDateFormat.Rfc2822StrictParser.parseOptionalBegin.

the java.util.Calendar constant for the parsed day name, or UNKNOWN_DAY_NAME iff the begin is missing

Annotations
@Override
parseSecondback to summary
pack-priv int parseSecond() throws ParseException

Overrides javax.mail.internet.MailDateFormat.Rfc2822StrictParser.parseSecond.

Annotations
@Override
parseYearback to summary
pack-priv int parseYear() throws ParseException

Overrides javax.mail.internet.MailDateFormat.Rfc2822StrictParser.parseYear.

Annotations
@Override
parseZoneback to summary
pack-priv int parseZone() throws ParseException

Overrides javax.mail.internet.MailDateFormat.Rfc2822StrictParser.parseZone.

Annotations
@Override
peekFoldingWhiteSpaceback to summary
pack-priv boolean peekFoldingWhiteSpace()

Overrides javax.mail.internet.MailDateFormat.AbstractDateParser.peekFoldingWhiteSpace.

Annotations
@Override
skipFoldingWhiteSpaceback to summary
pack-priv boolean skipFoldingWhiteSpace()

Overrides javax.mail.internet.MailDateFormat.AbstractDateParser.skipFoldingWhiteSpace.

Annotations
@Override
javax.mail.internet back to summary

private Class MailDateFormat.Rfc2822StrictParser

extends AbstractDateParser
Class Inheritance
Known Direct Subclasses
javax.mail.internet.MailDateFormat.Rfc2822LenientParser

Field Summary

Inherited from javax.mail.internet.MailDateFormat.AbstractDateParser:
INVALID_CHARMAX_YEAR_DIGITSpostext

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
pack-priv int
pack-priv void
pack-priv void
pack-priv int
pack-priv int
pack-priv int

Returns:

the java.util.Calendar constant for the parsed month name
parseMonth
()

pack-priv int

Returns:

the java.util.Calendar constant for the parsed day name, or UNKNOWN_DAY_NAME iff the begin is missing
parseOptionalBegin
()

pack-priv int
pack-priv int
pack-priv int
pack-priv Date
Inherited from javax.mail.internet.MailDateFormat.AbstractDateParser:
getAsciiDigitgetCharisValidZoneOffsetparseparseAsciiDigitsparseAsciiDigitsparseAsciiDigitsparseCharparseDayNameparseFoldingWhiteSpaceparseMonthNameparseZoneOffsetpeekAsciiDigitpeekCharpeekFoldingWhiteSpaceskipAlternativeskipAlternativePairskipAlternativeTripleskipCharskipFoldingWhiteSpaceskipNewlineskipPairskipWhiteSpace

Constructor Detail

Rfc2822StrictParserback to summary
pack-priv Rfc2822StrictParser(String text, ParsePosition pos)

Method Detail

isMonthNameCaseSensitiveback to summary
pack-priv boolean isMonthNameCaseSensitive()
parseDayback to summary
pack-priv int parseDay() throws ParseException
parseFwsBetweenTimeOfDayAndZoneback to summary
pack-priv void parseFwsBetweenTimeOfDayAndZone() throws ParseException
parseFwsInMonthback to summary
pack-priv void parseFwsInMonth() throws ParseException
parseHourback to summary
pack-priv int parseHour() throws ParseException
parseMinuteback to summary
pack-priv int parseMinute() throws ParseException
parseMonthback to summary
pack-priv int parseMonth() throws ParseException
Returns:int

the java.util.Calendar constant for the parsed month name

parseOptionalBeginback to summary
pack-priv int parseOptionalBegin() throws ParseException
Returns:int

the java.util.Calendar constant for the parsed day name, or UNKNOWN_DAY_NAME iff the begin is missing

parseSecondback to summary
pack-priv int parseSecond() throws ParseException
parseYearback to summary
pack-priv int parseYear() throws ParseException
parseZoneback to summary
pack-priv int parseZone() throws ParseException
tryParseback to summary
pack-priv Date tryParse() throws ParseException

Implements abstract javax.mail.internet.MailDateFormat.AbstractDateParser.tryParse.

Annotations
@Override