code: public static long exportCSV(final File out, final PreparedStatement stmt, final long offset, final long count, final boolean writeTitle,
              final boolean quoted) throws UncheckedSQLException, UncheckedIOException {
          return exportCSV(out, stmt, null, offset, count, writeTitle, quoted);
      }
docs: Exports the data from database to CVS.
  
  @param out
  @param stmt
  @param offset
  @param count
  @param writeTitle
  @param quoted
  @return