prefuse.data.parser
Class DateTimeParser

java.lang.Object
  extended by prefuse.data.parser.DateParser
      extended by prefuse.data.parser.DateTimeParser
All Implemented Interfaces:
DataParser

public class DateTimeParser
extends DateParser

DataParser instance that parses Date values as java.util.Date instances, representing a particular date and time. This class uses a backing DateFormat instance to perform parsing. The DateFormat instance to use can be passed in to the constructor, or by default the DateFormat returned by DateFormat.getDateTimeInstance(int, int) with both arguments being DateFormat.SHORT is used.

Author:
jeffrey heer

Field Summary
 
Fields inherited from class prefuse.data.parser.DateParser
m_dfmt, m_pos
 
Constructor Summary
DateTimeParser()
          Create a new DateTimeParser.
DateTimeParser(java.text.DateFormat dateFormat)
          Create a new DateTimeParser.
 
Method Summary
 
Methods inherited from class prefuse.data.parser.DateParser
canParse, format, getType, parse, parseDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeParser

public DateTimeParser()
Create a new DateTimeParser.


DateTimeParser

public DateTimeParser(java.text.DateFormat dateFormat)
Create a new DateTimeParser.

Parameters:
dateFormat - the DateFormat instance to use for parsing


Copyright © 2007 Regents of the University of California