Package javax.mail.internet
Class MailDateFormat.Rfc2822StrictParser
- java.lang.Object
-
- javax.mail.internet.MailDateFormat.AbstractDateParser
-
- javax.mail.internet.MailDateFormat.Rfc2822StrictParser
-
- Direct Known Subclasses:
MailDateFormat.Rfc2822LenientParser
- Enclosing class:
- MailDateFormat
private class MailDateFormat.Rfc2822StrictParser extends MailDateFormat.AbstractDateParser
-
-
Field Summary
-
Fields inherited from class javax.mail.internet.MailDateFormat.AbstractDateParser
INVALID_CHAR, MAX_YEAR_DIGITS, pos, text
-
-
Constructor Summary
Constructors Constructor Description Rfc2822StrictParser(java.lang.String text, java.text.ParsePosition pos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
isMonthNameCaseSensitive()
(package private) int
parseDay()
(package private) void
parseFwsBetweenTimeOfDayAndZone()
(package private) void
parseFwsInMonth()
(package private) int
parseHour()
(package private) int
parseMinute()
(package private) int
parseMonth()
(package private) int
parseOptionalBegin()
(package private) int
parseSecond()
(package private) int
parseYear()
(package private) int
parseZone()
(package private) java.util.Date
tryParse()
-
Methods inherited from class javax.mail.internet.MailDateFormat.AbstractDateParser
getAsciiDigit, getChar, isValidZoneOffset, parse, parseAsciiDigits, parseAsciiDigits, parseAsciiDigits, parseChar, parseDayName, parseFoldingWhiteSpace, parseMonthName, parseZoneOffset, peekAsciiDigit, peekChar, peekFoldingWhiteSpace, skipAlternative, skipAlternativePair, skipAlternativeTriple, skipChar, skipFoldingWhiteSpace, skipNewline, skipPair, skipWhiteSpace
-
-
-
-
Method Detail
-
tryParse
java.util.Date tryParse() throws java.text.ParseException
- Specified by:
tryParse
in classMailDateFormat.AbstractDateParser
- Throws:
java.text.ParseException
-
parseOptionalBegin
int parseOptionalBegin() throws java.text.ParseException
- Returns:
- the java.util.Calendar constant for the parsed day name, or UNKNOWN_DAY_NAME iff the begin is missing
- Throws:
java.text.ParseException
-
parseDay
int parseDay() throws java.text.ParseException
- Throws:
java.text.ParseException
-
parseMonth
int parseMonth() throws java.text.ParseException
- Returns:
- the java.util.Calendar constant for the parsed month name
- Throws:
java.text.ParseException
-
parseFwsInMonth
void parseFwsInMonth() throws java.text.ParseException
- Throws:
java.text.ParseException
-
isMonthNameCaseSensitive
boolean isMonthNameCaseSensitive()
-
parseYear
int parseYear() throws java.text.ParseException
- Throws:
java.text.ParseException
-
parseHour
int parseHour() throws java.text.ParseException
- Throws:
java.text.ParseException
-
parseMinute
int parseMinute() throws java.text.ParseException
- Throws:
java.text.ParseException
-
parseSecond
int parseSecond() throws java.text.ParseException
- Throws:
java.text.ParseException
-
parseFwsBetweenTimeOfDayAndZone
void parseFwsBetweenTimeOfDayAndZone() throws java.text.ParseException
- Throws:
java.text.ParseException
-
parseZone
int parseZone() throws java.text.ParseException
- Throws:
java.text.ParseException
-
-