borland Packages Class Hierarchy jbcl.model Package Index
java.lang.Object +----borland.jbcl.model.ItemFormatter +----borland.jbcl.model.VariantFormatter +----borland.jbcl.model.IntegerFormatter +----borland.jbcl.model.ShortFormatter +----borland.jbcl.model.ByteFormatter
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. For ByteFormatter classes, type must be Variant.BYTE. For ShortFormatter classes, type must be Variant.SHORT.
public IntegerFormatter(int type)Constructs an IntegerFormatter class.
Parameters:
public int getVariantType()Returns the Variant type.
public final String format(borland.jbcl.util.Variant value)Returns a string representation of the Variant value specified as value.
Parameters:
Overrides: borland.jbcl.model.VariantFormatter.format(Variant)
public void parse(borland.jbcl.util.Variant variant, char[] value, int offset, int len)A high-speed parse that parses directly into a character array.
Parameters:
Overrides: borland.jbcl.model.VariantFormatter.parse(Variant, char[], int, int)
public void parse(java.lang.String stringValue, borland.jbcl.util.Variant value)Analyzes the given String and produces as output a Variant containing the approriate value.
Parameters:
Overrides: borland.jbcl.model.VariantFormatter.parse(String, Variant)