|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xBaseJ.fields.Field
org.xBaseJ.fields.NumField
org.xBaseJ.fields.FloatField
| Field Summary |
| Fields inherited from class org.xBaseJ.fields.Field |
buffer, bytebuffer, Deleted, Length, myoffset, Name, otherValidCharacters |
| Constructor Summary | |
FloatField()
|
|
FloatField(String iName,
int iLength,
int DecPoint)
public method for creating a numeric field object. |
|
FloatField(String iName,
int iLength,
int DecPoint,
java.nio.ByteBuffer inBuffer)
|
|
| 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(String inValue)
sets the field contents. |
| Methods inherited from class org.xBaseJ.fields.NumField |
clone, get, getDecimalPositionCount |
| Methods inherited from class org.xBaseJ.fields.Field |
getBytes, getLength, getName, put, read, readExternal, setBuffer, setBufferSpace, setField, update, write, writeExternal |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FloatField()
public FloatField(String iName,
int iLength,
int DecPoint,
java.nio.ByteBuffer inBuffer)
throws xBaseJException
public FloatField(String iName,
int iLength,
int DecPoint)
throws xBaseJException,
IOException
iName - the name of the fieldiLength - the length of Field. range is 1 to 19 bytesDecPoint - the number of decimal positions range from 2 to 17 bytes. Relative to Length.
xBaseJException - bad name, length or decimal positions specified
IOException - can not occur but defined for calling methodsField| Method Detail |
public char getType()
getType in class NumField
public void put(String inValue)
throws xBaseJException
put in class NumFieldinValue - String
xBaseJException - most likely a format exception
public void put(long inValue)
throws xBaseJException
put in class NumFieldinValue - long
xBaseJException - most likely a format exception
public void put(int inValue)
throws xBaseJException
put in class NumFieldinValue - int
xBaseJException - most likely a format exception
public void put(float inValue)
throws xBaseJException
put in class NumFieldinValue - float
xBaseJException - most likely a format exception
public void put(double inValue)
throws xBaseJException
put in class NumFieldinValue - double
xBaseJException - most likely a format exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||