| java.lang.Object org.apache.commons.beanutils.converters.AbstractConverter org.apache.commons.beanutils.converters.FileConverter
FileConverter | final public class FileConverter extends AbstractConverter (Code) | | org.apache.commons.beanutils.Converter implementaion that handles conversion
to and from java.io.File objects.
Can be configured to either return a default value or throw a
ConversionException if a conversion error occurs.
author: James Strachan version: $Revision: 555845 $ $Date: 2007-07-13 03:52:05 +0100 (Fri, 13 Jul 2007) $ since: 1.6 |
Constructor Summary | |
public | FileConverter() Construct a java.io.File Converter that throws
a ConversionException if an error occurs. | public | FileConverter(Object defaultValue) Construct a java.io.File Converter that returns
a default value if an error occurs. |
Method Summary | |
protected Object | convertToType(Class type, Object value) Convert the input object into a java.io.File.
Parameters: type - Data type to which this value should be converted. Parameters: value - The input value to be converted. |
FileConverter | public FileConverter()(Code) | | Construct a java.io.File Converter that throws
a ConversionException if an error occurs.
|
FileConverter | public FileConverter(Object defaultValue)(Code) | | Construct a java.io.File Converter that returns
a default value if an error occurs.
Parameters: defaultValue - The default value to be returnedif the value to be converted is missing or an erroroccurs converting the value. |
convertToType | protected Object convertToType(Class type, Object value) throws Throwable(Code) | | Convert the input object into a java.io.File.
Parameters: type - Data type to which this value should be converted. Parameters: value - The input value to be converted. The converted value. throws: Throwable - if an error occurs converting to the specified type |
|
|