Package hec.io.dbf
Class DBFFieldDescriptor
java.lang.Object
hec.io.dbf.DBFFieldDescriptor
- All Implemented Interfaces:
Serializable
An object that publically describes a DBF field.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
char
byte
short
short
int
byte[]
byte
byte
-
Constructor Summary
ConstructorsConstructorDescriptionDBFFieldDescriptor
(String fName, char fType, int fSize, int nDecimal) Creates a new field descriptor object to represent a 1 DBase Field.DBFFieldDescriptor
(String fName, String fDesc, char fType, int fSize, int nDecimal) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
char
int
int
void
setFieldName
(String name) void
setRecordOffset
(int recordOffset) toString()
-
Field Details
-
fieldName
-
fieldDescription
-
fieldType
public char fieldType -
fieldDataAddress
public int fieldDataAddress -
fieldSize
public int fieldSize -
numDecimal
public int numDecimal -
multiUserRes
public short multiUserRes -
workID
public byte workID -
multiUserRes2
public short multiUserRes2 -
setFieldsFlag
public byte setFieldsFlag -
reserved
public byte[] reserved -
indexFld
public byte indexFld
-
-
Constructor Details
-
DBFFieldDescriptor
public DBFFieldDescriptor() -
DBFFieldDescriptor
Creates a new field descriptor object to represent a 1 DBase Field.- Parameters:
fName
- The name to use for the field. Must be 10 characters or less. If greater than 10, it will be truncatedfType
- The type of field this will be, ie MEMO, Locigal, etcfSize
- The size of the field. Must be > 0. If field type is MEMO, this argument is ignored and the value of 10 is usednDecimal
- The size of the field. Must be >= 0. If field type is MEMO, this argument is ignored- See Also:
-
for more information about field types.
-
DBFFieldDescriptor
-
-
Method Details
-
toString
-
equals
-
getFieldName
-
getFieldDescription
-
getFieldType
public char getFieldType() -
getFieldSize
public int getFieldSize() -
getNumDecimal
public int getNumDecimal() -
setFieldName
-
setRecordOffset
public void setRecordOffset(int recordOffset) -
getRecordOffset
public int getRecordOffset()
-