ShapeFileIndexWriter extends AbstractCommonShapeFileWriter<ShapeFileIndexRecord> { public final void write(int recordLength) throws IOException { write(new ShapeFileIndexRecord(this.lastOffsetToWrite, recordLength, false, -1)); } ShapeFileIndexWriter(File shapeName, ShapeElementType elementType, ESRIBounds bounds);  ShapeFileIndexWriter(URL shapeName, ShapeElementType elementType, ESRIBounds bounds);  ShapeFileIndexWriter(OutputStream stream, ShapeElementType elementType, ESRIBounds bounds);  ShapeFileIndexWriter(WritableByteChannel channel, ShapeElementType elementType, ESRIBounds bounds); final void write(int recordLength);  }
@Test public void testWriteCollection() throws Exception { this.writer.write(Arrays.asList(this.records)); this.writer.close(); assertContent(); }
@Test public void testWriteShapeFileRecord() throws Exception { for(int i=0; i<this.records.length; ++i) { this.writer.write(this.records[i]); } this.writer.close(); assertContent(); }
@Test public void testWriteInt() throws Exception { for(int i=0; i<this.records.length; ++i) { this.writer.write(this.records[i].getEntireRecordLength()); } this.writer.close(); assertContent(); }