org.apache.commons.convert1.format
Class ParseConverter
java.lang.Object
org.apache.commons.convert1.format.ParseConverter
- All Implemented Interfaces:
- Converter
public final class ParseConverter
- extends Object
- implements Converter
java.text.Format.parseObject(String); Object based converter.
- Since:
- 0.1
- Version:
- $Id: ParseConverter.java 155441 2005-02-26 13:19:22Z dirkv $
- Author:
- Henri Yandell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParseConverter
public ParseConverter(Format format)
convert
public Object convert(Class type,
Object value)
- Parse the specified input String into an Object
- Specified by:
convert
in interface Converter
- Parameters:
type
- Data type to which this value should be convertedvalue
- The input value to be converted
- Throws:
ConversionException
- if conversion cannot be performed
successfully
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.