/** * Load the default extensions from {@link #MIME_TYPE_EXTENSIONS_RESOURCE_PATH}, which can either be a property file or a * tab-delimited *nix-style MIME types file (common in web servers and libraries). If an extension applies to more than one * MIME type, the first one in the file wins. * * @return the default mappings; never null */ protected static Map<String, String> getDefaultMappings() { Map<String, Set<String>> duplicates = new HashMap<String, Set<String>>(); return load(Thread.currentThread().getContextClassLoader().getResourceAsStream(MIME_TYPE_EXTENSIONS_RESOURCE_PATH), duplicates); }