xBaseJ
Class FloatField
java.lang.Object
|
+--xBaseJ.Field
|
+--xBaseJ.NumField
|
+--xBaseJ.FloatField
- public class FloatField
- extends NumField
Constructor Summary |
FloatField(java.lang.String iName,
int iLength,
int DecPoint)
public method for creating a numeric field object. |
Method Summary |
char |
getType()
return the character 'F' indicating a float field |
void |
put(double inValue)
sets the field contents. |
void |
put(float inValue)
sets the field contents. |
void |
put(int inValue)
sets the field contents. |
void |
put(long inValue)
sets the field contents. |
void |
put(java.lang.String inValue)
sets the field contents. |
char |
type()
Deprecated. use getType |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FloatField
public FloatField(java.lang.String iName,
int iLength,
int DecPoint)
throws xBaseJException,
java.io.IOException
- public method for creating a numeric field object. It is not associated with a database
but can be when used with some DBF methods.
- Parameters:
Name
- the name of the fieldLength
- the length of Field. range is 1 to 19 bytesDecPoint
- the number of decimal positions range from 2 to 17 bytes. Relative to Length.- Throws:
- xBaseJException - bad name, length or decimal positions specified
- java.io.IOException - can not occur but defined for calling methods
- See Also:
Field
type
public char type()
- Deprecated. use getType
- return the character 'F' indicating a float field
- Overrides:
- type in class NumField
- Tags copied from class: Field
- Returns:
- char field type
- Throws:
- xBaseJException - undefined field type
getType
public char getType()
- return the character 'F' indicating a float field
- Overrides:
- getType in class NumField
- Tags copied from class: Field
- Returns:
- char field type
- Throws:
- xBaseJException - undefined field type
put
public void put(java.lang.String inValue)
throws xBaseJException
- sets the field contents.
- Overrides:
- put in class NumField
- Parameters:
inValue
- String- Throws:
- xBaseJException - most likely a format exception
put
public void put(long inValue)
throws xBaseJException
- sets the field contents.
- Overrides:
- put in class NumField
- Parameters:
inValue
- long- Throws:
- xBaseJException - most likely a format exception
put
public void put(int inValue)
throws xBaseJException
- sets the field contents.
- Overrides:
- put in class NumField
- Parameters:
inValue
- int- Throws:
- xBaseJException - most likely a format exception
put
public void put(float inValue)
throws xBaseJException
- sets the field contents.
- Overrides:
- put in class NumField
- Parameters:
inValue
- float- Throws:
- xBaseJException - most likely a format exception
put
public void put(double inValue)
throws xBaseJException
- sets the field contents.
- Overrides:
- put in class NumField
- Parameters:
inValue
- double- Throws:
- xBaseJException - most likely a format exception