docs: void completeUploading() throws IOException
    {
      LOGGER.debug("name: {}, currentSize: {}, Threshold: {},"
                   + " fileCount: {}, fileBucketSize: {}",
                   _file.getAbsolutePath(),
                   _currentSize, this._csvFileSize, _fileCount,
                   this._csvFileBucketSize);
  
      _outstream.flush();
      _outstream.close();
      //last file
      if (_currentSize > 0)
      {
        FileUploader fu = new FileUploader(_loader, _location, _file);
        fu.upload();
        _uploaders.add(fu);
      }
      else
      {
        // delete empty file
        _file.delete();
      }
  
      for (FileUploader fu : _uploaders)
      {
        // Finish all files being uploaded
        fu.join();
      }
  
      // Delete the directory once we are done (for easier tracking
      // of what is going on)
      _directory.deleteOnExit();
  
      if (this._rowCount == 0)
      {
        setState(State.EMPTY);
      }
    }