org.apache.commons.convert
Class AbstractLocalizedConverter<S,T>
java.lang.Object
org.apache.commons.convert.AbstractConverter<S,T>
org.apache.commons.convert.AbstractLocalizedConverter<S,T>
- All Implemented Interfaces:
- Converter<S,T>, ConverterLoader, LocalizedConverter<S,T>
- Direct Known Subclasses:
- DateTimeConverters.CalendarToString, DateTimeConverters.DateToString, DateTimeConverters.GenericLocalizedConverter, DateTimeConverters.LongToCalendar, DateTimeConverters.SqlDateToString, DateTimeConverters.SqlTimeToString, DateTimeConverters.StringToCalendar, DateTimeConverters.StringToDate, DateTimeConverters.StringToSqlDate, DateTimeConverters.StringToSqlTime, DateTimeConverters.StringToTimestamp, DateTimeConverters.TimestampToString, NumberConverters.AbstractNumberToStringConverter, NumberConverters.AbstractStringToNumberConverter
public abstract class AbstractLocalizedConverter<S,T>
- extends AbstractConverter<S,T>
- implements LocalizedConverter<S,T>
Abstract localized converter class. This class handles converter registration
and it implements some of the Converter
methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLocalizedConverter
protected AbstractLocalizedConverter(Class<? super S> sourceClass,
Class<? super T> targetClass)
convert
public T convert(S obj,
Locale locale,
TimeZone timeZone)
throws ConversionException
- Description copied from interface:
LocalizedConverter
- Converts
obj
to T
.
- Specified by:
convert
in interface LocalizedConverter<S,T>
- Parameters:
obj
- The source Object
to convertlocale
- The locale used for conversion - must not be null
timeZone
- The time zone used for conversion - must not be null
- Returns:
- The converted
Object
- Throws:
ConversionException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.