Build 1.0_r1(from source)

java.net
Interface FileNameMap


public interface 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:
ContentHandler, URLConnection.getFileNameMap(), URLConnection.guessContentTypeFromName(String), URLStreamHandler

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

Method Detail

getContentTypeFor

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature