加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20100814223452/http://developer.android.com:80/reference/java/net/FileNameMap.html
Since: API Level 1
public interface

FileNameMap

java.net.FileNameMap

Class Overview

Defines a scheme for mapping a filename type to a MIME content type. Mainly used by URLStreamHandler for determining the right content handler to handle the resource.

Summary

Public Methods
abstract String getContentTypeFor(String fileName)
Determines the MIME type for a file fileName of a URL.

Public Methods

public abstract String getContentTypeFor (String fileName)

Since: API Level 1

Determines the MIME type for a file fileName of a URL.

Parameters
fileName the name of the file to consider.
Returns
  • the appropriate MIME type of the given file.