public class RFC822DateUtils extends Object
Constructor and Description |
---|
RFC822DateUtils() |
Modifier and Type | Method and Description |
---|---|
static Date |
getDate(String rfc822DateString)
Returns a date instance for a given timestamp string that complies to the
RFC 822 standard
|
static String |
getString(Date date) |
static Date |
safeGetDate(String rfc822DateString)
Returns a date instance for a given timestamp string that complies to the
RFC 822 standard.
|
public static Date getDate(String rfc822DateString) throws DatatypeConfigurationException
rfc822DateString
- DatatypeConfigurationException
public static Date safeGetDate(String rfc822DateString)
null
is returned an
no exception is thrown.rfc822DateString
- public static String getString(Date date) throws DatatypeConfigurationException
DatatypeConfigurationException
Copyright © 2016 JBoss by Red Hat. All rights reserved.