Package hec.io.dbf
Class AsciiSerializableDbfHeader
java.lang.Object
hec.io.dbf.AbstractDBFHeader
hec.io.dbf.AsciiSerializableDbfHeader
- All Implemented Interfaces:
DBFHeader,Serializable
- Direct Known Subclasses:
AsciiDbfDataStorageHeader
A class that defines all of the dbf header and index information needed for
AsciiSerializable DBF files.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Field4infoContainerContains all of the field information.protected VectorA Vector containing the field names.protected Tag4infoContainerContains the index information for Ascii Serializable dbf files.static final StringConstant defining the description field.static final StringConstant defining the id field.static final StringConstant defining the name field.static final StringConstant defining the field name for the AsciiSerialized object.static final StringConstant defining the id index tag.static final StringConstant defining the "name" field's index tag.Fields inherited from class hec.io.dbf.AbstractDBFHeader
_fieldDescriptors, _header, _headerSize, _numRecords, _recordSize, FIELD_DESCRIPTOR_OFFSET, FIELD_DESCRIPTOR_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a query for this header that will retrieve all of the records using the Id index tag.buildDbfRecordIdQuery(Serializable[] indexTagKeys) Creates a query for this header that will retrieve all of the records using the Id index tag and the supplied Id tag keys.buildDbfRecordIndexSet(Serializable[] indexTagKeys) Creates a record number set for this header that can be used to delete records.buildDbfRecordNameQuery(Serializable[] indexTagKeys) Creates a query for this header that will retrieve all of the records using the NAME index tag and the supplied Name tag keys.Returns a DbfRecordSet for this header containing the index tag.byteReturns the field 4 info accessor for this header.String[]Returns a Vector containing the field names.Returns the index information for Ascii Serializable Dbf files.String[]getTags()Returns a String array containing the index tags.protected voidinit()Creates the field descriptors in the super class.Methods inherited from class hec.io.dbf.AbstractDBFHeader
deleteFieldDescriptor, deleteFieldDescriptor, fillPreHeaderByteArray, getByteArray, getFieldDescriptor, getFieldDescriptor, getFieldDescriptors, getHeaderSize, getNumDescriptors, getNumRecords, getRecordSize, insertFieldDescriptor, readFieldDescriptors, readHeader, readPreHeader, resizeFieldDescriptor
-
Field Details
-
TAG_NAME
Constant defining the "name" field's index tag.- See Also:
-
TAG_ID
Constant defining the id index tag.- See Also:
-
FIELD_ID
Constant defining the id field.- See Also:
-
FIELD_NAME
Constant defining the name field.- See Also:
-
FIELD_DESC
Constant defining the description field.- See Also:
-
FIELD_OBJ
Constant defining the field name for the AsciiSerialized object.- See Also:
-
_fieldNames
A Vector containing the field names. -
_f4infoC
Contains all of the field information. -
_tag4infoC
Contains the index information for Ascii Serializable dbf files.
-
-
Constructor Details
-
AsciiSerializableDbfHeader
public AsciiSerializableDbfHeader()
-
-
Method Details
-
init
protected void init()Creates the field descriptors in the super class. -
getTag4infoContainer
Returns the index information for Ascii Serializable Dbf files.- Throws:
codebase.Error4usage
-
getFieldNames
Returns a Vector containing the field names.- Specified by:
getFieldNamesin interfaceDBFHeader- Overrides:
getFieldNamesin classAbstractDBFHeader
-
getTags
Returns a String array containing the index tags. -
getField4infoContainer
Returns the field 4 info accessor for this header. -
buildDbfRecordIdQuery
Creates a query for this header that will retrieve all of the records using the Id index tag. -
buildDbfRecordIdQuery
Creates a query for this header that will retrieve all of the records using the Id index tag and the supplied Id tag keys. -
buildDbfRecordNameQuery
Creates a query for this header that will retrieve all of the records using the NAME index tag and the supplied Name tag keys. -
buildDbfRecordIndexSet
Creates a record number set for this header that can be used to delete records. -
buildDbfRecordSet
Returns a DbfRecordSet for this header containing the index tag. and field names. -
getDbaseVersionCode
public byte getDbaseVersionCode()- Specified by:
getDbaseVersionCodein classAbstractDBFHeader
-