Package org.smooks.engine.converter
Class DateToStringConverterFactory
- java.lang.Object
-
- org.smooks.engine.converter.DateToStringConverterFactory
-
- All Implemented Interfaces:
org.smooks.api.converter.TypeConverterFactory<Date,String>,org.smooks.api.resource.config.Configurable
public class DateToStringConverterFactory extends Object implements org.smooks.api.converter.TypeConverterFactory<Date,String>, org.smooks.api.resource.config.Configurable
Datedata decoder. Decodes the supplied string into aDatevalue based on the supplied "format" parameter, or the default (see below). The default date format used is "yyyy-MM-dd'T'HH:mm:ss" (seeSimpleDateFormat). This format is based on the ISO 8601 standard as used by the XML Schema type "dateTime". This decoder is synchronized on its underlyingSimpleDateFormatinstance.- Author:
- tom.fennelly@gmail.com
- See Also:
LocaleAwareDateDecoder
-
-
Constructor Summary
Constructors Constructor Description DateToStringConverterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.smooks.api.converter.TypeConverter<Date,String>createTypeConverter()PropertiesgetConfiguration()org.smooks.api.converter.TypeConverterDescriptor<Class<Date>,Class<String>>getTypeConverterDescriptor()voidsetConfiguration(Properties properties)
-
-
-
Method Detail
-
createTypeConverter
public org.smooks.api.converter.TypeConverter<Date,String> createTypeConverter()
-
getTypeConverterDescriptor
public org.smooks.api.converter.TypeConverterDescriptor<Class<Date>,Class<String>> getTypeConverterDescriptor()
-
setConfiguration
public void setConfiguration(Properties properties) throws org.smooks.api.SmooksConfigException
- Specified by:
setConfigurationin interfaceorg.smooks.api.resource.config.Configurable- Throws:
org.smooks.api.SmooksConfigException
-
getConfiguration
public Properties getConfiguration()
- Specified by:
getConfigurationin interfaceorg.smooks.api.resource.config.Configurable
-
-