Class JRDateLocaleConverter

  • All Implemented Interfaces:
    org.apache.commons.beanutils.Converter, org.apache.commons.beanutils.locale.LocaleConverter

    public class JRDateLocaleConverter
    extends org.apache.commons.beanutils.locale.converters.DateLocaleConverter
    A Converter class dedicated for the java.util.Date type.

    In order to obtain a java.util.Date object from a given String, a JRJavaUtilDateConverter object should be instantiated and it's inherited convert() method should be called. The final result is provided by the JRJavaUtilDateConverter's parse() invoked method.

    If if any of constructor arguments is null, default values will be provided.

    Author:
    szaharia
    See Also:
    DateLocaleConverter
    • Field Summary

      • Fields inherited from class org.apache.commons.beanutils.locale.BaseLocaleConverter

        locale, locPattern, pattern, useDefault
    • Constructor Summary

      Constructors 
      Constructor Description
      JRDateLocaleConverter​(java.util.TimeZone timeZone)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object parse​(java.lang.Object value, java.lang.String pattern)  
      • Methods inherited from class org.apache.commons.beanutils.locale.converters.DateLocaleConverter

        isLenient, setLenient
      • Methods inherited from class org.apache.commons.beanutils.locale.BaseLocaleConverter

        convert, convert, convert, convert
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JRDateLocaleConverter

        public JRDateLocaleConverter​(java.util.TimeZone timeZone)
    • Method Detail

      • parse

        protected java.lang.Object parse​(java.lang.Object value,
                                         java.lang.String pattern)
                                  throws java.text.ParseException
        Overrides:
        parse in class org.apache.commons.beanutils.locale.converters.DateLocaleConverter
        Throws:
        java.text.ParseException