Searched refs:desiredType (Results 1 – 1 of 1) sorted by relevance
93 public static boolean compareMimeTypes(String concreteType, String desiredType) { in compareMimeTypes() argument94 final int typeLength = desiredType.length(); in compareMimeTypes()95 if (typeLength == 3 && desiredType.equals("*/*")) { in compareMimeTypes()99 final int slashpos = desiredType.indexOf('/'); in compareMimeTypes()101 if (typeLength == slashpos+2 && desiredType.charAt(slashpos+1) == '*') { in compareMimeTypes()102 if (desiredType.regionMatches(0, concreteType, 0, slashpos+1)) { in compareMimeTypes()105 } else if (desiredType.equals(concreteType)) { in compareMimeTypes()