MimeTypes { public static String getContentType(String filename) { return getContentType(filename, "application/octet-stream"); }  static String getMimeType(String filename); static String getMimeType(String filename, String defaultMimeType); static String getContentType(String filename); static String getContentType(String filename, String defaultContentType); static boolean isValidMimeType(String mimeType);  }
@Test public void testMime() throws Exception { final String contentType = MimeTypes.getContentType("abc.png"); System.out.println(contentType); }