Deprecated
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final int | |
| private static String | cachedStringDate
Current formatted date. |
| private static final StringBuffer | |
| private static byte[] | currentDateBytes
Current formatted date as byte[]. |
| private static volatile byte[] | |
| private static final ThreadLocal | FORMAT
HTTP date format. |
| private static final ConcurrentMap | formatCache
Formatter cache. |
| private static final ThreadLocal | FORMATS
ThreadLocal for the set of SimpleDateFormat formats to use in getDateHeader(). |
| private static final FastHttpDateFormat. | |
| private static final TimeZone | |
| private static final AtomicBoolean | |
| private static volatile long | nextGeneration
Instant on which the currentDate object was generated. |
| private static final ConcurrentMap | parseCache
Parser cache. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | formatDate(long
in milli-seconds value, DateFormat the threadLocalFormat)DateFormat used if cache value was not foundGet the HTTP format of the specified date. |
| public static String | |
| public static byte[] | |
| private static long | |
| public static long | parseDate(final String value, DateFormat[] threadLocalformats)
Try to parse the given date as a HTTP date. |
| private static void | |
| private static void |
| ASCII_CHARSET_NAME | back to summary |
|---|---|
| private static final String ASCII_CHARSET_NAME | |
| CACHE_SIZE | back to summary |
|---|---|
| private static final int CACHE_SIZE | |
| cachedStringDate | back to summary |
|---|---|
| private static String cachedStringDate Current formatted date. | |
| currentDateBuffer | back to summary |
|---|---|
| private static final StringBuffer currentDateBuffer | |
| currentDateBytes | back to summary |
|---|---|
| private static byte[] currentDateBytes Current formatted date as byte[]. | |
| dateBytesForCachedStringDate | back to summary |
|---|---|
| private static volatile byte[] dateBytesForCachedStringDate | |
| FORMAT | back to summary |
|---|---|
| private static final ThreadLocal<FastHttpDateFormat. HTTP date format. | |
| formatCache | back to summary |
|---|---|
| private static final ConcurrentMap<Long, String> formatCache Formatter cache. | |
| FORMATS | back to summary |
|---|---|
| private static final ThreadLocal<T> FORMATS ThreadLocal for the set of SimpleDateFormat formats to use in getDateHeader(). GMT timezone - all HTTP dates are on GMT | |
| FORMATTER | back to summary |
|---|---|
| private static final FastHttpDateFormat. | |
| GMT_TIME_ZONE | back to summary |
|---|---|
| private static final TimeZone GMT_TIME_ZONE | |
| isGeneratingNow | back to summary |
|---|---|
| private static final AtomicBoolean isGeneratingNow | |
| nextGeneration | back to summary |
|---|---|
| private static volatile long nextGeneration Instant on which the currentDate object was generated. | |
| parseCache | back to summary |
|---|---|
| private static final ConcurrentMap<String, Long> parseCache Parser cache. | |
| FastHttpDateFormat | back to summary |
|---|---|
| public FastHttpDateFormat() | |
| formatDate | back to summary |
|---|---|
| public static String formatDate(long value, DateFormat threadLocalFormat) Get the HTTP format of the specified date.
| |
| getCurrentDate | back to summary |
|---|---|
| public static String getCurrentDate() Get the current date in HTTP format. | |
| getCurrentDateBytes | back to summary |
|---|---|
| public static byte[] getCurrentDateBytes() Get the current date in HTTP format. | |
| internalParseDate | back to summary |
|---|---|
| private static long internalParseDate(String value, DateFormat[] formats) Parse date with given formatters. | |
| parseDate | back to summary |
|---|---|
| public static long parseDate(final String value, DateFormat[] threadLocalformats) Try to parse the given date as a HTTP date. | |
| updateFormatCache | back to summary |
|---|---|
| private static void updateFormatCache(Long key, String value) Update cache. | |
| updateParseCache | back to summary |
|---|---|
| private static void updateParseCache(String key, Long value) Update cache. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Date | |
| private final SimpleDateFormat | |
| private final FieldPosition |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public StringBuffer |
| date | back to summary |
|---|---|
| private final Date date | |
| f | back to summary |
|---|---|
| private final SimpleDateFormat f | |
| pos | back to summary |
|---|---|
| private final FieldPosition pos | |
| SimpleDateFormatter | back to summary |
|---|---|
| public SimpleDateFormatter() | |
| format | back to summary |
|---|---|
| public String format(final long timeMillis) | |
| formatTo | back to summary |
|---|---|
| public StringBuffer formatTo(final long timeMillis, final StringBuffer buffer) | |