Package org.smooks.engine.converter
Class StringToDateConverterFactory
- java.lang.Object
-
- org.smooks.engine.converter.StringToDateConverterFactory
-
- All Implemented Interfaces:
org.smooks.api.converter.TypeConverterFactory<String,Date>,org.smooks.api.resource.config.Configurable
public class StringToDateConverterFactory extends Object implements org.smooks.api.converter.TypeConverterFactory<String,Date>, 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringToDateConverterFactory.StringToDateConverter
-
Constructor Summary
Constructors Constructor Description StringToDateConverterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.smooks.api.converter.TypeConverter<String,Date>createTypeConverter()PropertiesgetConfiguration()org.smooks.api.converter.TypeConverterDescriptor<Class<String>,Class<Date>>getTypeConverterDescriptor()voidsetConfiguration(Properties properties)
-
-
-
Method Detail
-
createTypeConverter
public org.smooks.api.converter.TypeConverter<String,Date> createTypeConverter()
-
getTypeConverterDescriptor
public org.smooks.api.converter.TypeConverterDescriptor<Class<String>,Class<Date>> 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
-
-