DbaseFileHeader class

Class to represent the header of a Dbase III file. Creation date: (5/15/2001 5:15:30 PM) */

Constructors

DbaseFileHeader()

Properties

date DateTime
read / write
fieldCnt int
read / write
fields List<DbaseField>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
headerLength int
read / write
largestFieldSize int
read / write
recordCnt int
read / write
recordLength int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addColumn(String inFieldName, String inFieldType, int inFieldLength, int inDecimalCount) → void
Add a column to this DbaseFileHeader. The type is one of (C N L or D) character, number, logical(true/false), or date. The Field length is the total length in bytes reserved for this column. The decimal count only applies to numbers(N), and floating point values (F), and refers to the number of characters to reserve after the decimal point. Don't expect miracles from this... [...]
addColumnWithIntType(String inFieldName, int inFieldTypeInt, int inFieldLength, int inDecimalCount) → void
getFieldClass(int i) Type
Determine the most appropriate Java Class for representing the data in the field. [...]
getFieldDecimalCount(int inIndex) int
Get the decimal count of this field. [...]
getFieldLength(int inIndex) int
Returns the field length in bytes. [...]
getFieldName(int inIndex) String
Get the field name. [...]
getFieldType(int inIndex) int
Get the character class of the field. [...]
getHeaderLength() int
Get the length of the header [...]
getLargestFieldSize() int
Get the largest field size of this table. [...]
getLastUpdateDate() DateTime
Get the date this file was last updated. [...]
getLengthForRecords(int records) int
Returns the expected file size for the given number of records in the file */
getNumFields() int
Return the number of fields in the records. [...]
getNumRecords() int
Return the number of records in the file [...]
getRecordLength() int
Get the length of the records in bytes. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
readHeader(AFileReader channel) Future<void>
Read the header data from the DBF file. [...]
readHeaderWithCharset(AFileReader channel, Charset charset) Future<void>
Read the header data from the DBF file. [...]
removeColumn(String inFieldName) int
Remove a column from this DbaseFileHeader. [...]
setNumRecords(int inNumRecords) → void
Set the number of records in the file [...]
toString() String
Get a simple representation of this header. [...]
override
writeHeader(FileWriter out) Future<void>
Write the header data to the DBF file. [...]

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

FILE_DESCRIPTOR_SIZE int
final
MAGIC int
final
MILLIS_SINCE_4713 int
Returns the number of millis at January 1st 4713 BC [...]
read / write
MINIMUM_HEADER int
final