org.nuiton.util.csv
Class Common.DateValue

java.lang.Object
  extended by org.nuiton.util.csv.Common.DateValue
All Implemented Interfaces:
ValueFormatter<Date>, ValueParser<Date>, ValueParserFormatter<Date>
Enclosing class:
Common

public static class Common.DateValue
extends Object
implements ValueParserFormatter<Date>


Field Summary
protected  DateFormat dateFormat
           
 
Constructor Summary
Common.DateValue(String dateFormatPattern)
           
 
Method Summary
 String format(Date date)
           
 Date parse(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateFormat

protected DateFormat dateFormat
Constructor Detail

Common.DateValue

public Common.DateValue(String dateFormatPattern)
Method Detail

parse

public Date parse(String value)
           throws ParseException
Specified by:
parse in interface ValueParser<Date>
Throws:
ParseException

format

public String format(Date date)
Specified by:
format in interface ValueFormatter<Date>


Copyright © 2011-2012 CodeLutin. All Rights Reserved.