Class 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
    Date data decoder.

    Decodes the supplied string into a Date value based on the supplied "format" parameter, or the default (see below).

    The default date format used is "yyyy-MM-dd'T'HH:mm:ss" (see SimpleDateFormat). This format is based on the ISO 8601 standard as used by the XML Schema type "dateTime".

    This decoder is synchronized on its underlying SimpleDateFormat instance.

    Author:
    tom.fennelly@gmail.com
    See Also:
    LocaleAwareDateDecoder
    • Constructor Detail

      • DateToStringConverterFactory

        public DateToStringConverterFactory()
    • Method Detail

      • createTypeConverter

        public org.smooks.api.converter.TypeConverter<Date,​String> createTypeConverter()
        Specified by:
        createTypeConverter in interface org.smooks.api.converter.TypeConverterFactory<Date,​String>
      • getTypeConverterDescriptor

        public org.smooks.api.converter.TypeConverterDescriptor<Class<Date>,​Class<String>> getTypeConverterDescriptor()
        Specified by:
        getTypeConverterDescriptor in interface org.smooks.api.converter.TypeConverterFactory<Date,​String>
      • setConfiguration

        public void setConfiguration​(Properties properties)
                              throws org.smooks.api.SmooksConfigException
        Specified by:
        setConfiguration in interface org.smooks.api.resource.config.Configurable
        Throws:
        org.smooks.api.SmooksConfigException
      • getConfiguration

        public Properties getConfiguration()
        Specified by:
        getConfiguration in interface org.smooks.api.resource.config.Configurable