Class ShpWriter

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

public final class ShpWriter extends Object implements AutoCloseable
Low-level writer for the .shp main file.

This writer is byte-level only: it writes the 100-byte header and individual record blocks (8-byte big-endian record header followed by the little-endian content of an EncodedShape). Geometry-to-bytes encoding lives in ShpGeometryEncoder so that the core package stays free of JTS encoding logic.

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