/** * Search for files that correspond to the given file. * If the given file is a .mea file, then the corresponding files will be * .res and .flex files. * If the given file is a .flex file, then the corresponding files will be * .res and .mea files. */ private String[] findFiles(Location baseFile) throws IOException { String[] suffixes = new String[0]; if (checkSuffix(baseFile.getName(), FLEX_SUFFIX)) { suffixes = new String[] {MEA_SUFFIX, RES_SUFFIX}; LOGGER.debug("Looking for files with the suffix '{}' or '{}'.", MEA_SUFFIX, RES_SUFFIX); } else if (checkSuffix(baseFile.getName(), MEA_SUFFIX)) { suffixes = new String[] {FLEX_SUFFIX, RES_SUFFIX}; LOGGER.debug("Looking for files with the suffix '{}' or '{}'.", FLEX_SUFFIX, RES_SUFFIX); } return findFiles(baseFile, suffixes); }
/** * Search for files that correspond to the given file. * If the given file is a .mea file, then the corresponding files will be * .res and .flex files. * If the given file is a .flex file, then the corresponding files will be * .res and .mea files. */ private String[] findFiles(Location baseFile) throws IOException { String[] suffixes = new String[0]; if (checkSuffix(baseFile.getName(), FLEX_SUFFIX)) { suffixes = new String[] {MEA_SUFFIX, RES_SUFFIX}; LOGGER.debug("Looking for files with the suffix '{}' or '{}'.", MEA_SUFFIX, RES_SUFFIX); } else if (checkSuffix(baseFile.getName(), MEA_SUFFIX)) { suffixes = new String[] {FLEX_SUFFIX, RES_SUFFIX}; LOGGER.debug("Looking for files with the suffix '{}' or '{}'.", FLEX_SUFFIX, RES_SUFFIX); } return findFiles(baseFile, suffixes); }
LOGGER.debug("Attempting to find files in the same dataset."); try { findFiles(currentFile);
LOGGER.debug("Attempting to find files in the same dataset."); try { findFiles(currentFile);