public boolean exportTable( JdbcConnection conn, String tableName, File out, Map<String, String> features, char delimiter, boolean header, Collection<String> quotes) { String[] options = new String[1]; try { options[0] = File.createTempFile("idiro", tableName).getAbsolutePath(); } catch (IOException e1) { logger.error("Fail to create temporary local file"); logger.error(e1.getMessage()); return false; } try { conn.exportTableToFile(tableName, features, options); } catch (SQLException e) { logger.debug(e.getMessage()); return false; } if (out.exists()) { out.delete(); } return changeFormatAfterExport(new File(options[0]), out, delimiter, features.keySet(), quotes); }