|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xBaseJ.Field | +--xBaseJ.NumField | +--xBaseJ.FloatField
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 xBaseJ.NumField |
decPosition, get, getDecimalPositionCount |
Methods inherited from class xBaseJ.Field |
decPoint, getBytes, getLength, getName, length, name, put, readExternal, writeExternal |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FloatField(java.lang.String iName, int iLength, int DecPoint) throws xBaseJException, java.io.IOException
DecPoint
- the number of decimal positions range from 2 to 17 bytes. Relative to Length.
xBaseJException
- bad name, length or decimal positions specified
java.io.IOException
- can not occur but defined for calling methodsField
Method Detail |
public char type()
type
in class NumField
public char getType()
getType
in class NumField
public void put(java.lang.String inValue) throws xBaseJException
put
in class NumField
inValue
- String
xBaseJException
- most likely a format exceptionpublic void put(long inValue) throws xBaseJException
put
in class NumField
inValue
- long
xBaseJException
- most likely a format exceptionpublic void put(int inValue) throws xBaseJException
put
in class NumField
inValue
- int
xBaseJException
- most likely a format exceptionpublic void put(float inValue) throws xBaseJException
put
in class NumField
inValue
- float
xBaseJException
- most likely a format exceptionpublic void put(double inValue) throws xBaseJException
put
in class NumField
inValue
- double
xBaseJException
- most likely a format exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |