com.ning.http.client.date
Class RFC2616DateParser

java.lang.Object
  extended by com.ning.http.client.date.RFC2616DateParser

public class RFC2616DateParser
extends Object

A parser for RFC2616 Date format.

Author:
slandelle

Constructor Summary
RFC2616DateParser(String string)
           
RFC2616DateParser(String string, int offset, int length)
           
 
Method Summary
 RFC2616Date parse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 parsed
offset - the offset where to start parsing
length - the number of chars to parse
Method Detail

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.