org.databene.commons.converter
Class String2DateFormatConverter

java.lang.Object
  extended by org.databene.commons.converter.AbstractConverter<S,T>
      extended by org.databene.commons.converter.ThreadSafeConverter<java.lang.String,java.text.DateFormat>
          extended by org.databene.commons.converter.String2DateFormatConverter
All Implemented Interfaces:
java.lang.Cloneable, Converter<java.lang.String,java.text.DateFormat>, ThreadAware

public class String2DateFormatConverter
extends ThreadSafeConverter<java.lang.String,java.text.DateFormat>

Parses a String as DateFormat.

Created at 13.07.2009 18:38:54

Since:
0.5.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.commons.converter.AbstractConverter
sourceType, targetType
 
Constructor Summary
String2DateFormatConverter()
           
 
Method Summary
 java.text.DateFormat convert(java.lang.String pattern)
          Concerts an object of type S to an object of type T
 
Methods inherited from class org.databene.commons.converter.ThreadSafeConverter
clone, isParallelizable, isThreadSafe
 
Methods inherited from class org.databene.commons.converter.AbstractConverter
getSourceType, getTargetType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

String2DateFormatConverter

public String2DateFormatConverter()
Method Detail

convert

public java.text.DateFormat convert(java.lang.String pattern)
                             throws ConversionException
Description copied from interface: Converter
Concerts an object of type S to an object of type T

Parameters:
pattern - the object to convert
Returns:
the converted object
Throws:
ConversionException - if the conversion fails


Copyright © 2010. All Rights Reserved.