org.intabulas.sandler.util
Class SandlerUtilities

java.lang.Object
  extended by org.intabulas.sandler.util.SandlerUtilities

public class SandlerUtilities
extends Object

SandlerUtilities

Version:
$Id: SandlerUtilities.java,v 1.8 2004/02/05 01:30:40 intabulas Exp $
Author:
Mark Lussier

Field Summary
static String RFC_822_DATE_FORMAT
          RFC 822 style date format
static String UTC_DATE_FORMAT
          UTC style date format
 
Method Summary
static String downloadUrl(String url)
          Returns the results of downloading the specified url
static Date getDateFromUTCDate(String date)
          Return a date from an ISO 8601 style String http://www.w3.org/TR/NOTE-datetime
static String getUTCDate(Date date)
          Return a date in UTC style
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RFC_822_DATE_FORMAT

public static final String RFC_822_DATE_FORMAT
RFC 822 style date format

See Also:
Constant Field Values

UTC_DATE_FORMAT

public static final String UTC_DATE_FORMAT
UTC style date format

Since:
blojsom 1.9.4
See Also:
Constant Field Values
Method Detail

getUTCDate

public static String getUTCDate(Date date)
Return a date in UTC style

Parameters:
date - Date
Returns:
A String formatted as UTC

getDateFromUTCDate

public static Date getDateFromUTCDate(String date)
                               throws ParseException
Return a date from an ISO 8601 style String http://www.w3.org/TR/NOTE-datetime

Parameters:
date - String formatted as ISO 8601
Returns:
Date
Throws:
ParseException

downloadUrl

public static String downloadUrl(String url)
Returns the results of downloading the specified url

Parameters:
url - the URL to download
Returns:
a String containing the contents of the response


Copyright © 2003-2004 Mark Lussier. All Rights Reserved.