From 57f5e9873dd073fbee48abef1f983a8cc5d17036 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Mon, 5 Aug 2013 13:08:30 -0400 Subject: [PATCH] Add Javadoc. No code changes. --- .../com/google/refine/importing/ImportingUtilities.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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();