quickfix.field.converter
Class IntConverter

java.lang.Object
  extended by quickfix.field.converter.IntConverter

public final class IntConverter
extends java.lang.Object

Convert between an integer and a String


Constructor Summary
IntConverter()
           
 
Method Summary
static java.lang.String convert(int i)
          Convert and integer to a String
static int convert(java.lang.String value)
          Convert a String to an integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntConverter

public IntConverter()
Method Detail

convert

public static java.lang.String convert(int i)
Convert and integer to a String

Parameters:
i - the integer to convert
Returns:
the String representing the integer
See Also:
Long.toString(long)

convert

public static int convert(java.lang.String value)
                   throws FieldConvertError
Convert a String to an integer.

Parameters:
value - the String to convert
Returns:
the converted integer
Throws:
FieldConvertError - raised if the String does not represent a valid integer.
See Also:
Integer.parseInt(String)