Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in 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)
Returns the MIME type (such as "text/plain") for the given filename, or null.

Public Methods

public abstract String getContentTypeFor ( String filename)

Added in API level 1

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