|
|||||||||||
| 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
| Field Summary |
| Fields inherited from class org.xBaseJ.fields.Field |
buffer, bytebuffer, Deleted, Length, myoffset, Name, otherValidCharacters |
| Constructor Summary | |
NumField()
|
|
NumField(String iName,
int iLength,
int inDecPosition)
public method for creating a numeric field object. |
|
NumField(String iName,
int iLength,
int idecPosition,
java.nio.ByteBuffer inBuffer)
|
|
| Method Summary | |
Object |
clone()
|
String |
get()
public method for getting field value |
int |
getDecimalPositionCount()
|
char |
getType()
return the character 'N' indicating a numeric 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.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 NumField()
public NumField(String iName,
int iLength,
int idecPosition,
java.nio.ByteBuffer inBuffer)
throws xBaseJException
public NumField(String iName,
int iLength,
int inDecPosition)
throws xBaseJException,
IOException
iName - the name of the fieldiLength - the length of Field. range is 1 to 19 bytesinDecPosition - 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 Object clone()
throws CloneNotSupportedException
clone in class FieldCloneNotSupportedExceptionpublic char getType()
getType in class Fieldpublic int getDecimalPositionCount()
getDecimalPositionCount in class Fieldpublic String get()
get in class Field
public void put(String inValue)
throws xBaseJException
put in class FieldinValue - String
xBaseJException - most likely a format exception
public void put(long inValue)
throws xBaseJException
inValue - long
xBaseJException - most likely a format exception
public void put(int inValue)
throws xBaseJException
inValue - int
xBaseJException - most likely a format exception
public void put(float inValue)
throws xBaseJException
inValue - float
xBaseJException - most likely a format exception
public void put(double inValue)
throws xBaseJException
inValue - double
xBaseJException - most likely a format exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||