IndexFile class

IndexFile parser for .shx files.
For now, the creation of index files is done in the ShapefileWriter. But this can be used to access the index.
For details on the index file, see
"ESRI(r) Shapefile - A Technical Description"

@author Ian Schneider

Constructors

IndexFile(AFileReader afileReader)

Properties

afileReader AFileReader
read / write
buf LByteBuffer
read / write
channelOffset int
read / write
closed bool
read / write
content List<int>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
read / write
lastIndex int
read / write
recLen int
read / write
recOffset int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

check() → void
close() → void
finalize() → void
getContentLength(int index) int
Get the content length of the given record in bytes, not 16 bit words. [...]
getHeader() ShapefileHeader
Get the header of this index file. [...]
getOffset(int index) Future<int>
Get the offset of the record (in 16-bit words). [...]
getOffsetInBytes(int index) Future<int>
Get the offset of the record (in real bytes, not 16-bit words). [...]
getRecordCount() int
Get the number of records in this index. [...]
id() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
open() Future<void>
Load the index file from the given reader.
readHeader(AFileReader channel) Future<void>
readRecord(int index) Future<void>
readRecords(AFileReader channel) Future<void>
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

RECS_IN_BUFFER int
final