Deprecated
Use DateFormatter instead
Date, but only encodes the one,
the first:
| Modifier and Type | Class and Description |
|---|---|
| private static class | HttpHeaderDateFormat.
First obsolete format Sunday, 06-Nov-94 08:49:37 GMT -> E, d-MMM-y HH:mm:ss z |
| private static class | HttpHeaderDateFormat.
Second obsolete format Sun Nov 6 08:49:37 1994 -> EEE, MMM d HH:mm:ss yyyy |
| Modifier and Type | Field and Description |
|---|---|
| private static final FastThreadLocal | |
| private final SimpleDateFormat | |
| private final SimpleDateFormat | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | HttpHeaderDateFormat()
Standard date format Sun, 06 Nov 1994 08:49:37 GMT -> E, d MMM yyyy HH:mm:ss z |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpHeaderDateFormat | |
| public Date | parse(String
A text, ParsePosition String, part of which should be parsed.A pos)ParsePosition object with index and error
index information as described above.Overrides java. Date.
|
| dateFormatThreadLocal | back to summary |
|---|---|
| private static final FastThreadLocal<HttpHeaderDateFormat> dateFormatThreadLocal | |
| format1 | back to summary |
|---|---|
| private final SimpleDateFormat format1 | |
| format2 | back to summary |
|---|---|
| private final SimpleDateFormat format2 | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| HttpHeaderDateFormat | back to summary |
|---|---|
| private HttpHeaderDateFormat() Standard date format Sun, 06 Nov 1994 08:49:37 GMT -> E, d MMM yyyy HH:mm:ss z | |
| get | back to summary |
|---|---|
| public static HttpHeaderDateFormat get()
Deprecated as a consequence of | |
| parse | back to summary |
|---|---|
| public Date parse(String text, ParsePosition pos) Overrides java. Doc from java. Parses text from a string to produce a
The method attempts to parse text starting at the index given by
This parsing operation uses the
| |
Sunday, 06-Nov-94 08:49:37 GMT -> E, d-MMM-y HH:mm:ss z
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| HttpHeaderDateFormatObsolete1 | back to summary |
|---|---|
| pack-priv HttpHeaderDateFormatObsolete1() | |
Sun Nov 6 08:49:37 1994 -> EEE, MMM d HH:mm:ss yyyy
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| HttpHeaderDateFormatObsolete2 | back to summary |
|---|---|
| pack-priv HttpHeaderDateFormatObsolete2() | |