|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.io.impl.DateParser
public class DateParser
A helper class that parses Dates out of Strings with date time in RFC822 and W3CDateTime formats plus the variants Atom (0.3) and RSS (0.9, 0.91, 0.92, 0.93, 0.94, 1.0 and 2.0) specificators added to those formats.
It uses the JDK java.text.SimpleDateFormat class attemtping the parse using a mask for each one of the possible formats.
Method Summary | |
---|---|
static String |
formatRFC822(Date date)
create a RFC822 representation of a date. |
static String |
formatW3CDateTime(Date date)
create a W3C Date Time representation of a date. |
static Date |
parseDate(String sDate)
Parses a Date out of a String with a date in W3C date-time format or in a RFC822 format. |
static Date |
parseRFC822(String sDate)
Parses a Date out of a String with a date in RFC822 format. |
static Date |
parseW3CDateTime(String sDate)
Parses a Date out of a String with a date in W3C date-time format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Date parseRFC822(String sDate)
sDate
- string to parse for a date.
public static Date parseW3CDateTime(String sDate)
sDate
- string to parse for a date.
public static Date parseDate(String sDate)
sDate
- string to parse for a date.
public static String formatRFC822(Date date)
date
- Date to parse
public static String formatW3CDateTime(Date date)
date
- Date to parse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |