Lizzy v1.1.1

christophedelory.rss
Class RFC822

java.lang.Object
  extended by christophedelory.rss.RFC822

final class RFC822
extends Object

RFC822 date and time-related methods. See also RFC 822.

Version:
$Revision: 91 $
Author:
Christophe Delory

Field Summary
static DateFormat ISO8601_DATETIME_FORMAT
          The ISO8601 Date formatter for date-time without time zone.
 
Method Summary
static String toString(Date date)
          Returns a RFC822 date and time string representation of the specified date.
static Date valueOf(String dateString)
          Returns a date representation of the specified RFC822 date and time string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISO8601_DATETIME_FORMAT

public static final DateFormat ISO8601_DATETIME_FORMAT
The ISO8601 Date formatter for date-time without time zone. The TimeZone used here is the default local time zone. The input Date is a GMT date and time.

Method Detail

toString

public static String toString(Date date)
Returns a RFC822 date and time string representation of the specified date.

Parameters:
date - the date to represent as a RFC822 date and time string.
Returns:
a RFC822 date and time string.
Throws:
NullPointerException - if date is null.

valueOf

public static Date valueOf(String dateString)
Returns a date representation of the specified RFC822 date and time string.

Parameters:
dateString - the RFC822 date and time string to decode as a date.
Returns:
a date. Is null if the dateString does not represent a valid RFC822 date and time string.
Throws:
NullPointerException - if dateString is null.

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.