public class TableHeader extends Object implements VPFHeader, DataTypesDefinition
BIG_ENDIAN_ORDER, CHAR_NULL_VALUE, DATA_2_COORD_F, DATA_2_COORD_F_LEN, DATA_2_COORD_R, DATA_2_COORD_R_LEN, DATA_3_COORD_F, DATA_3_COORD_F_LEN, DATA_3_COORD_R, DATA_3_COORD_R_LEN, DATA_DATE_TIME, DATA_DATE_TIME_LEN, DATA_LEVEL1_TEXT, DATA_LEVEL2_TEXT, DATA_LEVEL3_TEXT, DATA_LONG_FLOAT, DATA_LONG_FLOAT_LEN, DATA_LONG_INTEGER, DATA_LONG_INTEGER_LEN, DATA_NULL_FIELD, DATA_NULL_FIELD_LEN, DATA_SHORT_FLOAT, DATA_SHORT_FLOAT_LEN, DATA_SHORT_INTEGER, DATA_SHORT_INTEGER_LEN, DATA_TEXT, DATA_TRIPLET_ID, DATA_TRIPLET_ID_LEN, LEAST_SIGNIF_FIRST, LITTLE_ENDIAN_ORDER, MOST_SIGNIF_FIRST, STRING_NULL_VALUE, STRING_NULL_VALUES| Constructor and Description |
|---|
TableHeader(int length,
char byteOrder,
String description,
String narrativeTable,
List<TableColumnDef> columnDefs)
Creates a new
TableHeader instance. |
| Modifier and Type | Method and Description |
|---|---|
char |
getByteOrder()
Gets the value of byteOrder variable.
|
List<TableColumnDef> |
getColumnDefs()
Gets the value of columnDefs variable keeping definitions of all columns in this table.
|
String |
getDescription()
Gets the value of the description of table content.
|
int |
getLength()
Gets the value of full length of ASCII header string including
headerLength
field. |
String |
getNarrativeTable()
Gets the value of narrativeTable variable file name.
|
int |
getRecordSize()
Method
is used to return size in bytes of records
stored in this table. |
String |
toString()
Method
toString returns content of all fields values. |
public TableHeader(int length,
char byteOrder,
String description,
String narrativeTable,
List<TableColumnDef> columnDefs)
TableHeader instance.length - an int value of table header length.byteOrder - a char value byte order used in table file.description - a String value text description of found in header of this
table.narrativeTable - a String value file name of narrative table.columnDefs - a List value of all column definitions for this table.public String toString()
toString returns content of all fields values. Used only for test and
debug purpose.public int getLength()
headerLength
field.public int getRecordSize()
getRecordSize is used to return size in bytes of records
stored in this table. If table keeps variable length records -1 should be
returned.getRecordSize in interface VPFHeaderint valuepublic char getByteOrder()
public String getDescription()
public String getNarrativeTable()
public List<TableColumnDef> getColumnDefs()
Copyright © 1996–2021 Geotools. All rights reserved.