Searched refs:matchAgainst (Results 1 – 2 of 2) sorted by relevance
244 static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { in mimeTypeMatches() argument245 for (String matchType : matchAgainst) { in mimeTypeMatches()253 private static boolean mimeTypeMatches(String mimeType, String matchAgainst) { in mimeTypeMatches() argument254 String matchRegex = matchAgainst.replaceAll("\\+", "\\\\+").replaceAll("\\*", ".*"); in mimeTypeMatches()
280 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { in mimeTypeMatches() argument281 Pattern p = Pattern.compile(matchAgainst.replaceAll("\\*", "\\.\\*"), Pattern.CASE_INSENSITIVE); in mimeTypeMatches()294 public static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { in mimeTypeMatches() argument295 for (String matchType : matchAgainst) { in mimeTypeMatches()