public abstract class VPFInputStream extends Object implements FileConstants, DataTypesDefinition
Modifier and Type | Field and Description |
---|---|
protected VPFHeader |
header
Describe variable
header here. |
protected RandomAccessFile |
input
Describe variable
input here. |
protected String |
streamFile
Describe variable
streamFile here. |
AREA_BOUMDING_RECTANGLE_TABLE, AREA_FEATURE_TABLE, AREA_JOIN_TABLE, AREA_THEMATIC_INDEX, CHARACTER_VALUE_DESCRIPTION_TABLE, COLUMN_MANDATORY, COLUMN_MANDATORY_AT_LEVEL_0, COLUMN_MANDATORY_AT_LEVEL_1, COLUMN_MANDATORY_AT_LEVEL_2, COLUMN_MANDATORY_AT_LEVEL_3, COLUMN_MANDATORY_IF_TILES, COLUMN_OPTIONAL, COLUMN_OPTIONAL_FP, COMPLEX_BOUNDING_RECTANGLE_TABLE, COMPLEX_FEATURE_TABLE, COMPLEX_JOIN_TABLE, COMPLEX_THEMATIC_INDEX, CONNECTED_NODE_PRIMITIVE, CONNECTED_NODE_SPATIAL_INDEX, COVERAGE_ATTRIBUTE_TABLE, DATA_QUALITY_COVERAGE, DATA_QUALITY_TABLE, DATABASE_HEADER_TABLE, DIAGNOSITC_POINT_TABLE, DIR_DQ, DIR_GAZETTE, DIR_LIBREF, DIR_TILEREF, EDGE_BOUNDING_RECTANGLE, EDGE_PRIMITIVE, EDGE_SPATIAL_INDEX, ENTITY_NODE_PRIMITIVE, ENTITY_NODE_SPATIAL_INDEX, EXT_ABR, EXT_AFT, EXT_AJT, EXT_ATI, EXT_CBR, EXT_CFT, EXT_CJT, EXT_CTI, EXT_DOC, EXT_DPT, EXT_FIT, EXT_FTI, EXT_JTI, EXT_LBR, EXT_LFT, EXT_LJT, EXT_LTI, EXT_PBR, EXT_PFT, EXT_PJT, EXT_PTI, EXT_RAT, EXT_RPT, EXT_TFT, EXT_TTI, FACE_BOUNDING_RECTANGLE, FACE_PRIMITIVE, FACE_SPATIAL_INDEX, FEATURE_CLASS_ATTRIBUTE_TABLE, FEATURE_CLASS_SCHEMA_TABLE, FEATURE_INDEX_TABLE, FEATURE_THEMATIC_INDEX, GEOGRAPHIC_REFERENCE_TABLE, INTEGER_VALUE_DESCRIPTION_TABLE, JOIN_THEMATIC_INDEX, KEY_NON_UNIQUE, KEY_PRIMARY, KEY_UNIQUE, LIBRARY_ATTTIBUTE_TABLE, LIBRARY_HEADER_TABLE, LIBRARY_REFERENCE_COVERAGE, LINE_BOUNDING_RECTANGLE_TABLE, LINE_FEATURE_TABLE, LINE_JOIN_TABLE, LINE_THEMATIC_INDEX, NAMES_REFERENCE_COVERAGE, NARRATIVE_TABLE, POINT_BOUNDING_RECTANGLE_TABLE, POINT_FEATURE_TABLE, POINT_JOIN_TABLE, POINT_THEMATIC_INDEX, REGISTRATION_POINT_TABLE, RELATED_ATTRIBUTE_TABLE, RING_TABLE, TABLE_CAT, TABLE_CHAR, TABLE_CND, TABLE_CSI, TABLE_DHT, TABLE_DQT, TABLE_EBR, TABLE_EDG, TABLE_END, TABLE_ESI, TABLE_FAC, TABLE_FBR, TABLE_FCA, TABLE_FCS, TABLE_FSI, TABLE_GRT, TABLE_INT, TABLE_LAT, TABLE_LHT, TABLE_NSI, TABLE_RNG, TABLE_TSI, TABLE_TXT, TEXT_FEATURE_TABLE, TEXT_PRIMITIVE, TEXT_SPATIAL_INDEX, TEXT_THEMATIC_TABLE, TILE_REFERENCE_COVERAGE, VPF_ELEMENT_SEPARATOR, VPF_FIELD_SEPARATOR, VPF_RECORD_SEPARATOR
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 |
---|
VPFInputStream(String file)
Creates a new
VPFInputStream instance. |
VPFInputStream(String file,
char byteOrder)
Creates a new
VPFInputStream instance. |
Modifier and Type | Method and Description |
---|---|
int |
availableRows()
Describe
availableRows method here. |
void |
close()
Describe
close method here. |
protected void |
condeb(String msg)
Describe
condeb method here. |
char |
getByteOrder()
Get the ByteOrder value.
|
VPFHeader |
getHeader()
Describe
getHeader method here. |
String |
getVariableIndexFileName()
Describe
getVariableIndexFileName method here. |
List |
readAllRows()
Describe
readAllRows method here. |
protected char |
readChar()
Describe
readChar method here. |
protected DirectPosition[] |
readCoord2DDouble(int instancesCount) |
protected DirectPosition[] |
readCoord2DFloat(int instancesCount) |
protected DirectPosition[] |
readCoord3DDouble(int instancesCount) |
protected DirectPosition[] |
readCoord3DFloat(int instancesCount) |
protected double |
readDouble()
Describe
readDouble method here. |
protected Object |
readFixedSizeData(char dataType,
int instancesCount)
Describe
readFixedSizeData method here. |
protected float |
readFloat()
Describe
readFloat method here. |
abstract VPFHeader |
readHeader()
Describe
readHeader method here. |
protected int |
readInteger()
Describe
readInteger method here. |
protected byte[] |
readNumber(int cnt)
Describe
readNumber method here. |
abstract VPFRow |
readRow()
Describe
readRow method here. |
VPFRow |
readRow(int index)
Method
readRow is used to perform |
int |
readRows(VPFRow[] rows)
Method
readRows is used to perform |
int |
readRows(VPFRow[] rows,
int fromIndex)
Describe
readRows method here. |
protected short |
readShort()
Describe
readShort method here. |
protected String |
readString(String terminators)
Describe
readString method here. |
protected TripletId |
readTripletId() |
protected Object |
readVariableSizeData(char dataType)
Describe
readVariableSizeData method here. |
protected void |
seek(long pos)
Describe
seek method here. |
void |
setByteOrder(char newByteOrder)
Set the ByteOrder value.
|
void |
setPosition(long pos)
DOCUMENT ME!
|
abstract int |
tableSize()
Describe
tableSize method here. |
protected void |
unread(long bytes)
Describe
unread method here. |
protected RandomAccessFile input
input
here.protected VPFHeader header
header
here.protected String streamFile
streamFile
here.public VPFInputStream(String file) throws IOException
VPFInputStream
instance.file
- a String
valueIOException
- if an error occurspublic VPFInputStream(String file, char byteOrder) throws IOException
VPFInputStream
instance.file
- a String
valuebyteOrder
- a char
valueIOException
- if an error occurspublic abstract VPFHeader readHeader() throws IOException
readHeader
method here.VPFHeader
valueIOException
- if an error occurspublic abstract VPFRow readRow() throws IOException
readRow
method here.VPFRow
valueIOException
- if an error occurspublic abstract int tableSize() throws IOException
tableSize
method here.int
valueIOException
- if an error occurspublic String getVariableIndexFileName()
getVariableIndexFileName
method here.String
valuepublic VPFHeader getHeader()
getHeader
method here.VPFHeader
valuepublic char getByteOrder()
public void setByteOrder(char newByteOrder)
newByteOrder
- The new ByteOrder value.protected void unread(long bytes) throws IOException
unread
method here.bytes
- a long
valueIOException
- if an error occursprotected void seek(long pos) throws IOException
seek
method here.pos
- a long
valueIOException
- if an error occurspublic void setPosition(long pos) throws IOException
pos
- DOCUMENT ME!IOException
- DOCUMENT ME!public VPFRow readRow(int index) throws IOException
readRow
is used to performindex
- an int
valueVPFRow
valueIOException
- if an error occurspublic List readAllRows() throws IOException
readAllRows
method here.List
valueIOException
- if an error occurspublic int readRows(VPFRow[] rows) throws IOException
readRows
is used to performrows
- a VPFRow[]
valueint
valueIOException
- if an error occurspublic int readRows(VPFRow[] rows, int fromIndex) throws IOException
readRows
method here.rows
- a VPFRow[]
valuefromIndex
- an int
valueint
valueIOException
- if an error occursprotected char readChar() throws IOException
readChar
method here.char
valueIOException
- if an error occursprotected String readString(String terminators) throws IOException
readString
method here.terminators
- a String
valueString
valueIOException
- if an error occursprotected Object readVariableSizeData(char dataType) throws IOException
readVariableSizeData
method here.dataType
- a char
valueObject
valueIOException
- if an error occursprotected Object readFixedSizeData(char dataType, int instancesCount) throws IOException
readFixedSizeData
method here.dataType
- a char
valueinstancesCount
- an int
valueObject
valueIOException
- if an error occursprotected byte[] readNumber(int cnt) throws IOException
readNumber
method here.cnt
- an int
valuebyte[]
valueIOException
- if an error occursprotected short readShort() throws IOException
readShort
method here.short
valueIOException
- if an error occursprotected int readInteger() throws IOException
readInteger
method here.int
valueIOException
- if an error occursprotected float readFloat() throws IOException
readFloat
method here.float
valueIOException
- if an error occursprotected double readDouble() throws IOException
readDouble
method here.double
valueIOException
- if an error occursprotected TripletId readTripletId() throws IOException
IOException
protected DirectPosition[] readCoord3DFloat(int instancesCount) throws IOException
IOException
protected DirectPosition[] readCoord2DFloat(int instancesCount) throws IOException
IOException
protected DirectPosition[] readCoord2DDouble(int instancesCount) throws IOException
IOException
protected DirectPosition[] readCoord3DDouble(int instancesCount) throws IOException
IOException
public int availableRows()
availableRows
method here.int
valuepublic void close() throws IOException
close
method here.IOException
- if an error occursprotected void condeb(String msg)
condeb
method here.msg
- a String
valueCopyright © 1996–2022 Geotools. All rights reserved.