org.hrodberaht.i18n.formatter
Class DateFormatter

java.lang.Object
  extended by org.hrodberaht.i18n.formatter.Formatter
      extended by org.hrodberaht.i18n.formatter.DateFormatter

public class DateFormatter
extends Formatter

Simple Java Utils

Since:
1.0
Version:
1.0
Author:
Robert Alexandersson

Nested Class Summary
static class DateFormatter.DateConvert
           
 
Field Summary
 
Fields inherited from class org.hrodberaht.i18n.formatter.Formatter
locale
 
Constructor Summary
DateFormatter()
           
DateFormatter(DateFormatter.DateConvert dateConvert)
           
 
Method Summary
 java.lang.Object convertToObject(java.lang.String target)
           
 java.lang.String convertToString(java.lang.Object value)
          Returns a string representation of its argument, formatted as a date with the "MM/dd/yyyy" format.
protected  java.util.Date parseAndErrorhandleDate(java.lang.String target, java.text.DateFormat formatter)
           
 
Methods inherited from class org.hrodberaht.i18n.formatter.Formatter
getFormatter, getFormatter, isSupportedType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFormatter

public DateFormatter(DateFormatter.DateConvert dateConvert)

DateFormatter

public DateFormatter()
Method Detail

convertToObject

public java.lang.Object convertToObject(java.lang.String target)
Overrides:
convertToObject in class Formatter

convertToString

public java.lang.String convertToString(java.lang.Object value)
Returns a string representation of its argument, formatted as a date with the "MM/dd/yyyy" format.

Overrides:
convertToString in class Formatter
Returns:
a formatted String

parseAndErrorhandleDate

protected java.util.Date parseAndErrorhandleDate(java.lang.String target,
                                                 java.text.DateFormat formatter)


Copyright © 2010. All Rights Reserved.