public final class FastHttpDateFormat extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CACHE_SIZE |
protected static String |
currentDate
Current formatted date.
|
protected static long |
currentDateGenerated
Instant on which the currentDate object was generated.
|
protected static SimpleDateFormat |
format
HTTP date format.
|
protected static ConcurrentHashMap<Long,String> |
formatCache
Formatter cache.
|
protected static SimpleDateFormat[] |
formats
The set of SimpleDateFormat formats to use in getDateHeader().
|
protected static TimeZone |
gmtZone |
protected static ConcurrentHashMap<String,Long> |
parseCache
Parser cache.
|
| Constructor and Description |
|---|
FastHttpDateFormat() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatDate(long value,
DateFormat threadLocalformat)
Get the HTTP format of the specified date.
|
static String |
getCurrentDate()
Get the current date in HTTP format.
|
static long |
parseDate(String value,
DateFormat[] threadLocalformats)
Try to parse the given date as a HTTP date.
|
protected static final int CACHE_SIZE
protected static final SimpleDateFormat format
protected static final SimpleDateFormat[] formats
protected static final TimeZone gmtZone
protected static long currentDateGenerated
protected static String currentDate
protected static final ConcurrentHashMap<Long,String> formatCache
protected static final ConcurrentHashMap<String,Long> parseCache
public static final String getCurrentDate()
public static final String formatDate(long value, DateFormat threadLocalformat)
public static final long parseDate(String value, DateFormat[] threadLocalformats)
Copyright © 2005–2017 Oracle Corporation. All rights reserved.