borland Packages Class Hierarchy dx.text Package
IntegerFormatter class
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
About the IntegerFormatter class
Variables Constructors Properties Methods
Implements Serializable
The IntegerFormatter class formats and parses data of type int.
IntegerFormatter variables
Variables implemented in this class
IntegerFormatter constructors
IntegerFormatter properties
*Read-only properties **Write-only properties
Properties implemented in this class
Properties implemented in java.lang.Object
IntegerFormatter methods
Methods implemented in this class
Methods implemented in java.lang.Object
- clone()
- equals(java.lang.Object)
- finalize()
- hashCode()
- notify()
- notifyAll()
- toString()
- wait()
- wait(long)
- wait(long, int)
IntegerFormatter variables
type
protected int type
For the IntegerFormatter class, type must always be Variant.INTEGER.
IntegerFormatter constructors
IntegerFormatter(int)
public IntegerFormatter(int type)
Constructs an IntegerFormatter object.
Parameters:
- type
- The value of type must always be Variant.INTEGER.
IntegerFormatter properties
variantType
public int getVariantType()
Returns the Variant type.
IntegerFormatter methods
format(com.borland.dx.dataset.Variant)
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.
Parameters:
- value
- The value that is formatted.
Overrides:
com.borland.dx.text.VariantFormatter.format(Variant)
parse(com.borland.dx.dataset.Variant, char[], int, int)
public void parse(Variant variant, char[] value, int offset, int len)
A high-speed parse that parses directly into a character array.
Parameters:
- variant
- The parsed value (cannot be null).
- value
- The character array containing the text to parse.
- offset
- The zero-based offset into the character array.
- len
- The maximum number of characters in the array to use in the parse.
Overrides:
com.borland.dx.text.VariantFormatter.parse(Variant, char[], int, int)
parse(java.lang.String, com.borland.dx.dataset.Variant)
public void parse(String stringValue, Variant value)
Analyzes the given String and produces as output a Variant containing the appropriate value.
Parameters:
- stringValue
- The string to be parsed.
- value
- The Variant that receives the parsed result.
Overrides: com.borland.dx.text.VariantFormatter.parse(String, Variant)