void function ( ) { if ( shapeBuffer == null ) allocateBuffers ( ) ; shpChannel . position ( 100 ) ; shxChannel . position ( 100 ) ; }
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 ... concode_field_sep ShapeHandler handler concode_elem_sep StreamLogging shpLogger concode_elem_sep int offset concode_elem_sep int lp concode_elem_sep ByteBuffer shapeBuffer concode_elem_sep ByteBuffer indexBuffer concode_elem_sep int cnt concode_elem_sep GeometryFactory gf concode_elem_sep FileChannel shpChannel concode_elem_sep FileChannel shxChannel concode_elem_sep ShapeType type concode_elem_sep StreamLogging shxLogger concode_field_sep void checkShapeBuffer concode_elem_sep void writeHeaders concode_elem_sep void writeHeaders concode_elem_sep int writeNullGeometry concode_elem_sep void allocateBuffers concode_elem_sep void writeGeometry concode_elem_sep void close concode_elem_sep void write concode_elem_sep void drain concode_elem_sep int writeNonNullGeometry