org.apache.commons.convert1.format
Class FormatConverter

java.lang.Object
  extended by org.apache.commons.convert1.format.FormatConverter
All Implemented Interfaces:
Converter

public final class FormatConverter
extends Object
implements Converter

java.text.Format.format(Object); String based converter.

Since:
0.1
Version:
$Id: FormatConverter.java 155441 2005-02-26 13:19:22Z dirkv $
Author:
Henri Yandell

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

Constructor Detail

FormatConverter

public FormatConverter(Format format)
Method Detail

convert

public Object convert(Class type,
                      Object value)
Format the specified input object into a String

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.