infovis.column.format
Class UTCDateFormat

java.lang.Object
  extended by java.text.Format
      extended by java.text.DateFormat
          extended by java.text.SimpleDateFormat
              extended by infovis.column.format.UTCDateFormat
All Implemented Interfaces:
Serializable, Cloneable

public class UTCDateFormat
extends SimpleDateFormat

Format for Unix Time Dates.

Version:
$Revision: 1.5 $
Author:
Jean-Daniel Fekete
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.DateFormat
DateFormat.Field
 
Field Summary
 
Fields inherited from class java.text.DateFormat
AM_PM_FIELD, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, ERA_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MINUTE_FIELD, MONTH_FIELD, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD
 
Constructor Summary
UTCDateFormat()
          Constructor for UTCDateFormat.
UTCDateFormat(String pattern)
          Constructor for UTCDateFormat.
UTCDateFormat(String pattern, DateFormatSymbols formatSymbols)
          Constructor for UTCDateFormat.
UTCDateFormat(String pattern, Locale locale)
          Constructor for UTCDateFormat.
 
Method Summary
static UTCDateFormat getSharedInstance()
          Returns the instance of that format.
 Object parseObject(String source)
          
static void setSharedInstance(UTCDateFormat format)
          Sets the instance of that format.
 
Methods inherited from class java.text.SimpleDateFormat
applyLocalizedPattern, applyPattern, clone, equals, format, formatToCharacterIterator, get2DigitYearStart, getDateFormatSymbols, hashCode, parse, set2DigitYearStart, setDateFormatSymbols, toLocalizedPattern, toPattern
 
Methods inherited from class java.text.DateFormat
format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone
 
Methods inherited from class java.text.Format
format
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTCDateFormat

public UTCDateFormat()
Constructor for UTCDateFormat.


UTCDateFormat

public UTCDateFormat(String pattern)
Constructor for UTCDateFormat.

Parameters:
pattern - the string pattern for that format.

UTCDateFormat

public UTCDateFormat(String pattern,
                     Locale locale)
Constructor for UTCDateFormat.

Parameters:
pattern - the string pattern
locale - the locale

UTCDateFormat

public UTCDateFormat(String pattern,
                     DateFormatSymbols formatSymbols)
Constructor for UTCDateFormat.

Parameters:
pattern - the string pattern
formatSymbols - the format symbols
Method Detail

getSharedInstance

public static UTCDateFormat getSharedInstance()
Returns the instance of that format.

Returns:
the instance of that format

setSharedInstance

public static void setSharedInstance(UTCDateFormat format)
Sets the instance of that format.

Parameters:
format - the format

parseObject

public Object parseObject(String source)
                   throws ParseException

Overrides:
parseObject in class Format
Throws:
ParseException


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.