borland Packages Class Hierarchy dx.text Package
java.lang.Object +----com.borland.dx.text.ItemFormatter +----com.borland.dx.text.VariantFormatter +----com.borland.dx.text.IntegerFormatter +----com.borland.dx.text.ByteFormatter +----com.borland.dx.text.ShortFormatter
Variables Constructors Properties Methods
Implements Serializable
The IntegerFormatter
class formats and parses data of type int.
protected int typeFor the
IntegerFormatter
class, type
must always be Variant.INTEGER
.
public IntegerFormatter(int type)Constructs an
IntegerFormatter
object.
type
type
must always be Variant.INTEGER
.
public int getVariantType()Returns the
Variant
type.
public final String format(Variant value)Returns a string representation of the int value stored in
Variant
. All reasonable attempts are made to "cast" the type found in the object to an int.
value
public void parse(Variant variant, char[] value, int offset, int len)A high-speed parse that parses directly into a character array.
variant
value
offset
len
public void parse(String stringValue, Variant value)Analyzes the given
String
and produces as output a Variant
containing the appropriate value.
stringValue
value
Variant
that receives the parsed result.