|
||||||||||
| 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
public class FloatField
This class is courtesy of the xBaseJ project: http://xbasej.sourceforge.net/ Copyright 1997-2007 - American Coders, LTD - Raleigh NC USA
American Coders, Ltd P. O. Box 97462 Raleigh, NC 27615 USA 1-919-846-2014 http://www.americancoders.com
| Field Summary |
|---|
| Fields inherited from class org.xBaseJ.fields.Field |
|---|
buffer, bytebuffer, deleted, myoffset, name, nength, 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,
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,
ByteBuffer inBuffer)
throws xBaseJException
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 | |||||||||