Skip to content

Most visited

Recently visited

navigation
Added in API level 1

FileNameMap

public interface FileNameMap

java.net.FileNameMap


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.

See also:

Summary

Public methods

abstract String getContentTypeFor(String filename)

Returns the MIME type (such as "text/plain") for the given filename, or null.

Public methods

getContentTypeFor

Added in API level 1
String getContentTypeFor (String filename)

Returns the MIME type (such as "text/plain") for the given filename, or null.

Parameters
filename String
Returns
String
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.