Class ShxWriter

java.lang.Object
ch.so.agi.gretl.internal.shapefile.core.ShxWriter
All Implemented Interfaces:
AutoCloseable

public final class ShxWriter extends Object implements AutoCloseable
Low-level writer for the .shx index file.

The index shares the same 100-byte header layout as the .shp file. Each index entry is 8 bytes: the offset and content length, both big-endian and measured in 16-bit words. The offset points at the start of the corresponding .shp record, including its 8-byte record header.

The FileChannel is owned by ShapefileDatasetWriter; close() therefore does not close the channel.