Lines Matching refs:mimeType
75 * @param mimeType A MIME type (i.e. text/plain)
76 * @return True iff there is a mimeType entry in the map.
78 public boolean hasMimeType(String mimeType) {
79 return MimeUtils.hasMimeType(mimeType);
109 * @param mimeType A MIME type (i.e. text/plain)
112 public String getExtensionFromMimeType(String mimeType) {
113 return MimeUtils.guessExtensionFromMimeType(mimeType);
121 * @param mimeType MIME type provided by the server.
126 /* package */ String remapGenericMimeType(String mimeType, String url,
130 if ("text/plain".equals(mimeType) ||
131 "application/octet-stream".equals(mimeType)) {
145 mimeType = newMimeType;
147 } else if ("text/vnd.wap.wml".equals(mimeType)) {
149 mimeType = "text/plain";
153 if ("application/vnd.wap.xhtml+xml".equals(mimeType)) {
154 mimeType = "application/xhtml+xml";
157 return mimeType;