Searched refs:matchAgainst (Results 1 – 2 of 2) sorted by relevance
261 static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { in mimeTypeMatches() argument262 for (String matchType : matchAgainst) { in mimeTypeMatches()270 private static boolean mimeTypeMatches(String mimeType, String matchAgainst) { in mimeTypeMatches() argument271 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()