public interface FileNameMap
| java.net.FileNameMap |
一个简单的接口,它提供了一种在文件名和MIME类型字符串之间进行映射的机制。
Public methods |
|
|---|---|
abstract String |
getContentTypeFor(String fileName) 获取指定文件名的MIME类型。 |
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. |