code: public String getMimeType(String filename, String encoding) {
  
          return getMimeType(filename, encoding, MIMETYPE_HTML);
      }
docs: Returns the MIME type for a specified file name.<p>
  
  If an encoding parameter that is not <code>null</code> is provided,
  the returned MIME type is extended with a <code>; charset={encoding}</code> setting.<p>
  
  If no MIME type for the given filename can be determined, the
  default <code>{@link #MIMETYPE_HTML}</code> is used.<p>
  
  @param filename the file name to check the MIME type for
  @param encoding the default encoding (charset) in case of MIME types is of type "text"
  
  @return the MIME type for a specified file