1 package prefuse.data.parser; 2 3 import java.text.DateFormat; 4 5 /** 6 * DataParser instance that parses Date values as java.util.Date instances, 7 * representing a particular date and time. 8 * This class uses a backing {@link java.text.DateFormat} instance to 9 * perform parsing. The DateFormat instance to use can be passed in to the 10 * constructor, or by default the DateFormat returned by 11 * {@link java.text.DateFormat#getDateTimeInstance(int, int)} with both 12 * arguments being {@link java.text.DateFormat#SHORT} is used. 13 * 14 * @author <a HREF="http://jheer.org">jeffrey heer</a> 15 */ 16 public class DateTimeParser extends DateParser { 17 18 /** 19 * Create a new DateTimeParser. 20 */ 21 public DateTimeParser() { 22 this(DateFormat.getDateTimeInstance( 23 DateFormat.SHORT, DateFormat.SHORT)); 24 } 25 26 /** 27 * Create a new DateTimeParser. 28 * @param dateFormat the DateFormat instance to use for parsing 29 */ 30 public DateTimeParser(DateFormat dateFormat) { 31 super(dateFormat); 32 } 33 34 } // end of class DateTimeParser 35