All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xBaseJ.Field

java.lang.Object
   |
   +----xBaseJ.Field

public abstract class Field
extends Object
implements Cloneable

Method Index

 o decPoint()
Deprecated.
 o get()
 o getBytes()
returns the original byte array as stored in the file.
 o getDecimalPositionCount()
 o getLength()
 o getName()
 o getType()
 o length()
Deprecated.
 o name()
Deprecated.
 o put(String)
set field contents, no database updates until a DBF update or write is issued
 o type()
Deprecated.

Methods

 o name
 public String name()
Note: name() is deprecated. use getName

Returns:
String contianing the field name
 o getName
 public String getName()
Returns:
String contianing the field name
 o length
 public int length()
Note: length() is deprecated. use getLength

Returns:
int - the field length
 o getLength
 public int getLength()
Returns:
int - the field length
 o type
 public char type() throws xBaseJException
Note: type() is deprecated. use getType

Returns:
char field type
Throws: xBaseJException
undefined field type
 o getType
 public char getType() throws xBaseJException
Returns:
char field type
Throws: xBaseJException
undefined field type
 o decPoint
 public int decPoint()
Note: decPoint() is deprecated. use getDecimalPositionCount

Returns:
int - the number of decimal positions for numeric fields, zero returned otherwise
 o getDecimalPositionCount
 public int getDecimalPositionCount()
Returns:
int - the number of decimal positions for numeric fields, zero returned otherwise
 o get
 public String get()
Returns:
String field contents after any type of read.
Throws: UnsupportedEncodingException
file coding is not supported by the jvm
 o getBytes
 public byte[] getBytes()
returns the original byte array as stored in the file.

Returns:
byte[] - may return a null if not set
 o put
 public void put(String inValue) throws xBaseJException
set field contents, no database updates until a DBF update or write is issued

Parameters:
inValue - value to set
Throws: xBaseJException
value length too long
Throws: UnsupportedEncodingException
file coding is not supported by the jvm

All Packages  Class Hierarchy  This Package  Previous  Next  Index