Android
java.net
public interface

java.net.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.

Summary

Public Methods

          String  getContentTypeFor(String fileName)
Determines the MIME types for a file fileName of a URL.

Details

Public Methods

public String getContentTypeFor(String fileName)

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

Parameters

fileName the name of the file to consider.

Returns

  • the mime type
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48