Package org.geotools.data.vpf.io
Class TableHeader
- Object
- 
- TableHeader
 
- 
- All Implemented Interfaces:
- DataTypesDefinition,- VPFHeader
 
 public class TableHeader extends Object implements VPFHeader, DataTypesDefinition This class contains definition of VPF standard table header according to specification found in: "Interface Standard for Vector Product Format." Objects of this type are immutable. Created: Thu Jan 02 22:50:59 2003- Author:
- Artur Hefczyc
 
- 
- 
Field Summary- 
Fields inherited from interface DataTypesDefinitionBIG_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 SummaryConstructors Constructor Description TableHeader(int length, char byteOrder, String description, String narrativeTable, List<TableColumnDef> columnDefs)Creates a newTableHeaderinstance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetByteOrder()Gets the value of byteOrder variable.List<TableColumnDef>getColumnDefs()Gets the value of columnDefs variable keeping definitions of all columns in this table.StringgetDescription()Gets the value of the description of table content.intgetLength()Gets the value of full length of ASCII header string includingheaderLengthfield.StringgetNarrativeTable()Gets the value of narrativeTable variable file name.intgetRecordSize()MethodgetRecordSizeStringtoString()MethodtoStringreturns content of all fields values.
 
- 
- 
- 
Constructor Detail- 
TableHeaderpublic TableHeader(int length, char byteOrder, String description, String narrativeTable, List<TableColumnDef> columnDefs)Creates a newTableHeaderinstance.- Parameters:
- length- an- intvalue of table header length.
- byteOrder- a- charvalue byte order used in table file.
- description- a- Stringvalue text description of found in header of this table.
- narrativeTable- a- Stringvalue file name of narrative table.
- columnDefs- a- Listvalue of all column definitions for this table.
 
 
- 
 - 
Method Detail- 
toStringpublic String toString() MethodtoStringreturns content of all fields values. Used only for test and debug purpose.
 - 
getLengthpublic int getLength() Gets the value of full length of ASCII header string includingheaderLengthfield.
 - 
getRecordSizepublic int getRecordSize() MethodgetRecordSize-1should be returned.- Specified by:
- getRecordSizein interface- VPFHeader
- Returns:
- an int
 
 - 
getByteOrderpublic char getByteOrder() Gets the value of byteOrder variable. Byte order in which table is written:- L - least-significant-first
- M - most-significant-first
 - Returns:
- the value of byteOrder
 
 - 
getDescriptionpublic String getDescription() Gets the value of the description of table content.- Returns:
- the value of description
 
 - 
getNarrativeTablepublic String getNarrativeTable() Gets the value of narrativeTable variable file name.- Returns:
- the value of narrativeTable
 
 - 
getColumnDefspublic List<TableColumnDef> getColumnDefs() Gets the value of columnDefs variable keeping definitions of all columns in this table.- Returns:
- the value of columnDefs
 
 
- 
 
-