Most visited

Recently visited

Added in API level 1

FileNameMap

public interface FileNameMap

java.net.FileNameMap


一个简单的接口,它提供了一种在文件名和MIME类型字符串之间进行映射的机制。

摘要(Summary)

公共方法(Public methods)

abstract String getContentTypeFor(String fileName)

获取指定文件名的MIME类型。

公共方法(Public methods)

getContentTypeFor

Added in API level 1
String getContentTypeFor (String fileName)

获取指定文件名的MIME类型。

参数(Parameters)
fileName String: the specified file name
返回(Returns)
String a String indicating the MIME type for the specified file name.

Hooray!