net.sf.ofx4j.io
Interface StringConversion

All Known Implementing Classes:
DefaultStringConversion

public interface StringConversion

Interface for converting to/from OFX strings.

Author:
Ryan Heaton

Method Summary
<E> E
fromString(java.lang.Class<E> clazz, java.lang.String value)
          Convert the specified value to an object of the specified type.
 java.lang.String toString(java.lang.Object value)
          Convert the specified object to a string.
 

Method Detail

toString

java.lang.String toString(java.lang.Object value)
Convert the specified object to a string.

Parameters:
value - The value to convert to a string.
Returns:
The string.

fromString

<E> E fromString(java.lang.Class<E> clazz,
                 java.lang.String value)
             throws OFXSyntaxException
Convert the specified value to an object of the specified type.

Parameters:
clazz - The class.
value - The value.
Returns:
The converted value.
Throws:
OFXSyntaxException - If there was something wrong with the syntax of the string.


Copyright © 2008. All Rights Reserved.