diff --git a/main/src/com/google/refine/importing/ImportingUtilities.java b/main/src/com/google/refine/importing/ImportingUtilities.java index 9ed2fcdea..b51938ecd 100644 --- a/main/src/com/google/refine/importing/ImportingUtilities.java +++ b/main/src/com/google/refine/importing/ImportingUtilities.java @@ -748,6 +748,15 @@ public class ImportingUtilities { return encoding; } + /** + * Figure out the best (most common) format for the set of files, select + * all files which match that format, and return the format found. + * + * @param job ImportingJob object + * @param retrievalRecord JSON object containing "files" key with all our files + * @param fileSelectionIndexes JSON array of selected file indices matching best format + * @return best (highest frequency) format + */ static public String autoSelectFiles(ImportingJob job, JSONObject retrievalRecord, JSONArray fileSelectionIndexes) { final Map formatToCount = new HashMap(); List formats = new ArrayList();