Package net.sf.jasperreports.engine.util
Class JRDateLocaleConverter
- java.lang.Object
-
- org.apache.commons.beanutils.locale.BaseLocaleConverter
-
- org.apache.commons.beanutils.locale.converters.DateLocaleConverter
-
- net.sf.jasperreports.engine.util.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
-
-
Constructor Summary
Constructors Constructor Description JRDateLocaleConverter(TimeZone timeZone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
parse(Object value, String pattern)
-
Methods inherited from class org.apache.commons.beanutils.locale.converters.DateLocaleConverter
isLenient, setLenient
-
-
-
-
Constructor Detail
-
JRDateLocaleConverter
public JRDateLocaleConverter(TimeZone timeZone)
-
-
Method Detail
-
parse
protected Object parse(Object value, String pattern) throws ParseException
- Overrides:
parse
in classorg.apache.commons.beanutils.locale.converters.DateLocaleConverter
- Throws:
ParseException
-
-