com.ning.http.client.date
Class RFC2616DateParser
java.lang.Object
com.ning.http.client.date.RFC2616DateParser
public class RFC2616DateParser
- extends Object
A parser for RFC2616
Date format.
- Author:
- slandelle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RFC2616DateParser
public RFC2616DateParser(String string)
- Parameters:
string
- a string that will be fully parsed
RFC2616DateParser
public RFC2616DateParser(String string,
int offset,
int length)
- Parameters:
string
- the string to be parsedoffset
- the offset where to start parsinglength
- the number of chars to parse
parse
public RFC2616Date parse()
- Parameters:
validate
- if validation is to be enabled of non-critical elements,
such as day of week and timezone
- Returns:
- null is the string is not a valid RFC2616 date
Copyright © 2014. All Rights Reserved.