org.apache.commons.convert1.format
Class ParseConverter

java.lang.Object
  extended by 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

Constructor Summary
ParseConverter(Format format)
           
 
Method Summary
 Object convert(Class type, Object value)
          Parse the specified input String into an Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseConverter

public ParseConverter(Format format)
Method Detail

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 converted
value - The input value to be converted
Throws:
ConversionException - if conversion cannot be performed successfully


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.