code: public void write(ResultSet resultSet, CellProcessor[] writeProcessors) throws SQLException, IOException {
  		if( resultSet == null ) {
  			throw new NullPointerException("ResultSet cannot be null");
  		}
  		if( writeProcessors == null ) {
  			throw new NullPointerException("CellProcessor[] cannot be null");
  		}
  		
  		writeHeaders(resultSet); // increments row and line number
  		writeContents(resultSet, writeProcessors); // increments row and line number before writing of each row
  	}
docs: {@inheritDoc}