public abstract class InternetDateParser extends DateReducers
| Constructor and Description |
|---|
InternetDateParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatAscTime(Date date) |
String |
formatISO8601(Date date) |
String |
formatRFC1123(Date date) |
String |
formatRFC850(Date date) |
static void |
main(String... args) |
static InternetDateParser |
newInstance() |
protected abstract void |
parse(String text,
Calendar calendar) |
Date |
parseAscTime(String text)
Parses date in asc time format EEE, MMM dd HH:mm:ss yyyy
|
protected abstract void |
parseAscTime(String text,
Calendar calendar) |
Calendar |
parseAscTimeCalendar(String text)
Parses date in asc time format EEE, MMM dd HH:mm:ss yyyy
|
Calendar |
parseCalendar(String text)
Parses dates in either ISO8601, RFC1123, RFC850 or asctime format.
|
Date |
parseDate(String text)
Parses dates in either ISO8601, RFC1123, RFC850 or asctime format.
|
Date |
parseISO8601(String text)
Parses date in ISO8601 format.
|
protected abstract void |
parseISO8601(String text,
Calendar calendar) |
Calendar |
parseISO8601Calendar(String text)
Parses date in ISO8601 format.
|
Date |
parseRFC1123(String text)
Parses date in RFC1123 format EEE, dd MMM yyyy HH:mm:ss z
|
protected abstract void |
parseRFC1123(String text,
Calendar calendar) |
Calendar |
parseRFC1123Calendar(String text)
Parses date in RFC1123 format EEE, dd MMM yyyy HH:mm:ss z
|
Date |
parseRFC850(String text)
Parses date in RFC850 format EEEE, dd-MMM-yy HH:mm:ss z
|
protected abstract void |
parseRFC850(String text,
Calendar calendar) |
Calendar |
parseRFC850Calendar(String text)
Parses date in RFC850 format EEEE, dd-MMM-yy HH:mm:ss z
|
protected int |
tzOffset_10800000() |
protected int |
tzOffset_12600000() |
protected int |
tzOffset_14400000() |
protected int |
tzOffset_16200000() |
protected int |
tzOffset_18000000() |
protected int |
tzOffset_21600000() |
protected int |
tzOffset_25200000() |
protected int |
tzOffset_28800000() |
protected int |
tzOffset_30600000() |
protected int |
tzOffset_32400000() |
protected int |
tzOffset_34200000() |
protected int |
tzOffset_3600000() |
protected int |
tzOffset_36000000() |
protected int |
tzOffset_39600000() |
protected int |
tzOffset_43200000() |
protected int |
tzOffset_7200000() |
protected int |
tzOffset_9000000() |
protected int |
tzOffset0() |
protected int |
tzOffset10800000() |
protected int |
tzOffset11224000() |
protected int |
tzOffset12600000() |
protected int |
tzOffset14400000() |
protected int |
tzOffset16200000() |
protected int |
tzOffset18000000() |
protected int |
tzOffset19800000() |
protected int |
tzOffset20700000() |
protected int |
tzOffset21600000() |
protected int |
tzOffset23400000() |
protected int |
tzOffset24300000() |
protected int |
tzOffset25200000() |
protected int |
tzOffset27000000() |
protected int |
tzOffset28800000() |
protected int |
tzOffset31500000() |
protected int |
tzOffset32400000() |
protected int |
tzOffset34200000() |
protected int |
tzOffset35100000() |
protected int |
tzOffset3600000() |
protected int |
tzOffset36000000() |
protected int |
tzOffset37800000() |
protected int |
tzOffset39600000() |
protected int |
tzOffset41400000() |
protected int |
tzOffset43200000() |
protected int |
tzOffset45000000() |
protected int |
tzOffset45900000() |
protected int |
tzOffset46800000() |
protected int |
tzOffset49500000() |
protected int |
tzOffset50400000() |
protected int |
tzOffset54000000() |
protected int |
tzOffset7200000() |
ad, am, bc, character, dayInMonth, dayInWeekInMonth, dayInYear, digit12, digit13, digit2, digit3, generalTZ, hour11, hour12, hour23, hour24, milliSecond, minute, month, month1, month10, month11, month12, month2, month3, month4, month5, month6, month7, month8, month9, pm, rfc822, rfc822String1, rfc822String2, rfc822String3, rfc822String4, second, sign, string, weekday1, weekday2, weekday3, weekday4, weekday5, weekday6, weekday7, weekInMonth, weekInYear, year2, year4public static InternetDateParser newInstance() throws NoSuchMethodException, IOException, NoSuchFieldException, ClassNotFoundException, InstantiationException, IllegalAccessException
public Date parseDate(String text) throws IOException
text - IOExceptionSimpleDateFormatpublic Calendar parseCalendar(String text) throws IOException
text - IOExceptionSimpleDateFormatpublic Date parseRFC1123(String text) throws IOException
text - IOExceptionSimpleDateFormatpublic Calendar parseRFC1123Calendar(String text) throws IOException
text - IOExceptionSimpleDateFormatpublic Date parseRFC850(String text) throws IOException
text - IOExceptionSimpleDateFormatpublic Calendar parseRFC850Calendar(String text) throws IOException
text - IOExceptionSimpleDateFormatpublic Date parseAscTime(String text) throws IOException
text - IOExceptionSimpleDateFormatpublic Calendar parseAscTimeCalendar(String text) throws IOException
text - IOExceptionSimpleDateFormatpublic Date parseISO8601(String text) throws IOException
yyyy-MM-dd'T'HH:mm:ss.SSSz yyyy-MM-dd'T'HH:mm:ssz yyyy-MM-dd'T'HH:mmz yyyy-MM-dd'T'HH:mm:ss.SSSZ yyyy-MM-dd'T'HH:mm:ssZ yyyy-MM-dd'T'HH:mmZ yyyy-MM-dd yyyy-MM yyyy
text - IOExceptionSimpleDateFormatpublic Calendar parseISO8601Calendar(String text) throws IOException
yyyy-MM-dd'T'HH:mm:ss.SSSz yyyy-MM-dd'T'HH:mm:ssz yyyy-MM-dd'T'HH:mmz yyyy-MM-dd'T'HH:mm:ss.SSSZ yyyy-MM-dd'T'HH:mm:ssZ yyyy-MM-dd'T'HH:mmZ yyyy-MM-dd yyyy-MM yyyy
text - IOExceptionSimpleDateFormatprotected abstract void parse(String text, Calendar calendar) throws IOException
text - calendar - IOExceptionprotected abstract void parseRFC1123(String text, Calendar calendar) throws IOException
text - calendar - IOExceptionprotected abstract void parseRFC850(String text, Calendar calendar) throws IOException
text - calendar - IOExceptionprotected abstract void parseAscTime(String text, Calendar calendar) throws IOException
text - calendar - IOExceptionprotected abstract void parseISO8601(String text, Calendar calendar) throws IOException
text - calendar - IOExceptionprotected int tzOffset0()
protected int tzOffset_3600000()
protected int tzOffset31500000()
protected int tzOffset24300000()
protected int tzOffset35100000()
protected int tzOffset34200000()
protected int tzOffset_39600000()
protected int tzOffset_25200000()
protected int tzOffset_30600000()
protected int tzOffset14400000()
protected int tzOffset16200000()
protected int tzOffset36000000()
protected int tzOffset41400000()
protected int tzOffset_32400000()
protected int tzOffset45900000()
protected int tzOffset_7200000()
protected int tzOffset21600000()
protected int tzOffset23400000()
protected int tzOffset_10800000()
protected int tzOffset12600000()
protected int tzOffset_43200000()
protected int tzOffset49500000()
protected int tzOffset_18000000()
protected int tzOffset_16200000()
protected int tzOffset28800000()
protected int tzOffset32400000()
protected int tzOffset_9000000()
protected int tzOffset_21600000()
protected int tzOffset7200000()
protected int tzOffset18000000()
protected int tzOffset20700000()
protected int tzOffset_28800000()
protected int tzOffset10800000()
protected int tzOffset_36000000()
protected int tzOffset_12600000()
protected int tzOffset50400000()
protected int tzOffset43200000()
protected int tzOffset45000000()
protected int tzOffset3600000()
protected int tzOffset46800000()
protected int tzOffset25200000()
protected int tzOffset39600000()
protected int tzOffset54000000()
protected int tzOffset37800000()
protected int tzOffset_14400000()
protected int tzOffset19800000()
protected int tzOffset27000000()
protected int tzOffset11224000()
protected int tzOffset_34200000()
public static void main(String... args)
Copyright © 2014. All rights reserved.