org.apache.camel.dataformat.bindy
Interface Format<T>

All Known Subinterfaces:
PatternFormat<T>
All Known Implementing Classes:
BigDecimalFormat, BigIntegerFormat, ByteFormat, BytePatternFormat, CharacterFormat, DatePatternFormat, DoubleFormat, DoublePatternFormat, FloatFormat, FloatPatternFormat, IntegerFormat, IntegerPatternFormat, LongFormat, LongPatternFormat, NumberPatternFormat, ShortFormat, ShortPatternFormat, StringFormat

public interface Format<T>

Format allows to format object to and from string received using format or parse method


Method Summary
 String format(T object)
          Formats the object into a String
 T parse(String string)
          Parses a String into an object
 

Method Detail

format

String format(T object)
              throws Exception
Formats the object into a String

Parameters:
object - the object
Returns:
formatted as a String
Throws:
Exception - can be thrown

parse

T parse(String string)
        throws Exception
Parses a String into an object

Parameters:
string - the string
Returns:
T the object
Throws:
Exception - can be thrown


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.