fun hasExtension(extension: String?): Boolean { return if (TextUtils.isEmpty(extension)) { false } else extensionToMimeTypeMap.containsKey(extension) }
Returns true if the given extension has a registered MIME type .