/** * Creates a collection of URIs from a given list of files. * * @param fileNameList the list of files * @return a list of URIs */ public static Collection<String> getFileURIs(final String... fileNameList) { final Collection<String> uris = new ArrayList<>(); for (final String fileName : fileNameList) uris.add(getFileURI(fileName)); return uris; }
/** * Creates a collection of URIs from a given list of files. * * @param fileNameList the list of files * @return a list of URIs */ public static Collection<String> getFileURIs(final String... fileNameList) { final Collection<String> uris = new ArrayList<>(); for (final String fileName : fileNameList) uris.add(getFileURI(fileName)); return uris; }
/** * Parse one or more files to the internal representation supported by this loader. Note: this method previously accepted a list of regular expressions * instead of file URIs. This behavior has been changed as of 2.0.0-rc7. * * @param fileNames list of file URIs * @see FileUtils#getFileURIs(String...) */ public void parse(final String... fileNames) { _logger.fine(() -> "Parsing (" + fileNames.length + ") files"); for (final String fileName : fileNames) { final String fileURI = FileUtils.getFileURI(fileName); parseFile(fileURI); } _logger.info("Parsing done."); }
/** * Parse one or more files to the internal representation supported by this loader. Note: this method previously accepted a list of regular expressions * instead of file URIs. This behavior has been changed as of 2.0.0-rc7. * * @param fileNames list of file URIs * @see FileUtils#getFileURIs(String...) */ public void parse(final String... fileNames) { _logger.fine(() -> "Parsing (" + fileNames.length + ") files"); for (final String fileName : fileNames) { final String fileURI = FileUtils.getFileURI(fileName); parseFile(fileURI); } _logger.info("Parsing done."); }