Class CharacterArrayConverter
java.lang.Object
org.apache.commons.beanutils.converters.AbstractArrayConverter
org.apache.commons.beanutils.converters.CharacterArrayConverter
- All Implemented Interfaces:
Converter
Deprecated.
Standard Converter implementation that converts an incoming
String into a primitive array of char. On a conversion failure, returns
a specified default value or throws a ConversionException depending
on how this instance is constructed.
- Since:
- 1.4
-
Field Summary
Fields inherited from class org.apache.commons.beanutils.converters.AbstractArrayConverter
defaultValue, NO_DEFAULT, strings, useDefault -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create aConverterthat will throw aConversionExceptionif a conversion error occurs.CharacterArrayConverter(Object defaultValue) Deprecated.Create aConverterthat will return the specified default value if a conversion error occurs. -
Method Summary
Methods inherited from class org.apache.commons.beanutils.converters.AbstractArrayConverter
parseElements
-
Constructor Details
-
CharacterArrayConverter
public CharacterArrayConverter()Deprecated.Create aConverterthat will throw aConversionExceptionif a conversion error occurs. -
CharacterArrayConverter
Deprecated.Create aConverterthat will return the specified default value if a conversion error occurs.- Parameters:
defaultValue- The default value to be returned
-
-
Method Details
-
convert
Deprecated.Convert the specified input object into an output object of the specified type.- Specified by:
convertin interfaceConverter- Specified by:
convertin classAbstractArrayConverter- Parameters:
type- Data type to which this value should be convertedvalue- The input value to be converted- Returns:
- the converted value
- Throws:
ConversionException- if conversion cannot be performed successfully
-
ArrayConverterimplementation