| java.lang.Object velosurf.util.FastHttpDateFormat
FastHttpDateFormat | public class FastHttpDateFormat (Code) | | Utility class to generate HTTP dates.
This source code is taken from Tomcat Apache
author: Remy Maucherat author: Andrey Grebnev <andrey.grebnev@blandware.com> |
formatDate | final public static String formatDate(long value, DateFormat threadLocalformat)(Code) | | Formats a specified date to HTTP format. If local format is not
null , it's used instead.
Parameters: value - Date value to format Parameters: threadLocalformat - The format to use (or null -- thenHTTP format will be used) Formatted date |
getCurrentDate | final public static String getCurrentDate()(Code) | | Gets the current date in HTTP format.
Current date in HTTP format |
parseDate | final public static long parseDate(String value, DateFormat[] threadLocalformats)(Code) | | Tries to parse the given date as an HTTP date. If local format list is not
null , it's used instead.
Parameters: value - The string to parse Parameters: threadLocalformats - Array of formats to use for parsing.If null , HTTP formats are used. Parsed date (or -1 if error occured) |
|
|