? ShortArrayConverter
java.lang.Object
org.apache.commons.beanutils.converters.AbstractArrayConverter
org.apache.commons.beanutils.converters.ShortArrayConverter
- ????????:
Converter
????
Standard Converter
implementation that converts an incoming
String into a primitive array of short. On a conversion failure, returns
a specified default value or throws a ConversionException
depending
on how this instance is constructed.
- ???????:
- 1.4
- ??:
- $Id$
-
????
??????? org.apache.commons.beanutils.converters.AbstractArrayConverter
defaultValue, NO_DEFAULT, strings, useDefault
-
?????
????????????Create aConverter
that will throw aConversionException
if a conversion error occurs.ShortArrayConverter
(Object defaultValue) ????Create aConverter
that will return the specified default value if a conversion error occurs. -
????
??????? org.apache.commons.beanutils.converters.AbstractArrayConverter
parseElements
-
???????
-
ShortArrayConverter
public ShortArrayConverter()????Create aConverter
that will throw aConversionException
if a conversion error occurs. -
ShortArrayConverter
????Create aConverter
that will return the specified default value if a conversion error occurs.- ??:
defaultValue
- The default value to be returned
-
-
??????
-
convert
????Convert the specified input object into an output object of the specified type.- ???:
convert
????Converter
- ???:
convert
???AbstractArrayConverter
- ??:
type
- Data type to which this value should be convertedvalue
- The input value to be converted- ??:
- the converted value
- ??:
ConversionException
- if conversion cannot be performed successfully
-
ArrayConverter
implementation