mark our #currentfeature feature as null , it will be skipped when written effectively removing it . concode_field_sep CSVFileState csvFileState concode_elem_sep File temp concode_elem_sep CSVIterator iterator concode_elem_sep CsvWriter csvWriter concode_elem_sep SimpleFeature currentFeature concode_elem_sep SimpleFeatureType featureType concode_elem_sep CSVStrategy csvStrategy concode_elem_sep boolean appending concode_elem_sep int nextRow concode_field_sep SimpleFeature next concode_elem_sep SimpleFeatureType getFeatureType concode_elem_sep boolean hasNext concode_elem_sep void write concode_elem_sep void close
void function ( ) { this . currentFeature = null ; }