Class SqlTimeLocaleConverter
java.lang.Object
org.apache.commons.beanutils2.locale.BaseLocaleConverter<D>
org.apache.commons.beanutils2.locale.converters.DateLocaleConverter<Time>
org.apache.commons.beanutils2.sql.converters.locale.SqlTimeLocaleConverter
- All Implemented Interfaces:
Converter<Time>
,LocaleConverter<Time>
Standard
LocaleConverter
implementation that converts an incoming locale-sensitive String into a
Time
object, optionally using a default value or throwing a ConversionException
if a conversion error
occurs.-
Nested Class Summary
-
Field Summary
Fields inherited from class org.apache.commons.beanutils2.locale.BaseLocaleConverter
defaultValue, locale, localizedPattern, pattern, useDefault
-
Method Summary
Methods inherited from class org.apache.commons.beanutils2.locale.converters.DateLocaleConverter
isLenient
Methods inherited from class org.apache.commons.beanutils2.locale.BaseLocaleConverter
convert, convert, convert, convert
-
Method Details
-
builder
Constructs a new builder.- Returns:
- a new builder.
-
parse
Converts the specified locale-sensitive input object into an output object of the specified type.- Overrides:
parse
in classDateLocaleConverter<Time>
- Parameters:
value
- The input object to be convertedpattern
- The pattern is used for the conversion- Returns:
- The converted value
- Throws:
ConversionException
- if conversion cannot be performed successfullyParseException
- if an error occurs parsing a String to a Number
-