/** * Allocate internal buffers and position the channels to the beginning or the record section of * the shapefile. The headers MUST be rewritten after this operation, or the file may be * corrupt... */ public void skipHeaders() throws IOException { if (shapeBuffer == null) allocateBuffers(); shpChannel.position(100); shx.moveToRecordStart(); }