java.net

Interface FileNameMap

public interface FileNameMap

This interface has one method which, when passed a filename, returns the MIME type associated with that filename.

Since: 1.1

Method Summary
StringgetContentTypeFor(String filename)
This method is passed a filename and is responsible for determining the appropriate MIME type for that file.

Method Detail

getContentTypeFor

public String getContentTypeFor(String filename)
This method is passed a filename and is responsible for determining the appropriate MIME type for that file.

Parameters: filename The name of the file to generate a MIME type for.

Returns: The MIME type for the filename passed in.