make sure our buffer is of size . 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 writeHeaders concode_elem_sep void writeHeaders concode_elem_sep void skipHeaders 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
void function ( int arg0 ) { if ( shapeBuffer . capacity ( ) < arg0 ) { if ( shapeBuffer != null ) NIOUtilities . clean ( shapeBuffer , false ) ; shapeBuffer = NIOUtilities . allocate ( arg0 ) ; } }