URLConnection.guessContentTypeFromName

URLConnection.guessContentTypeFromName

Class Overview | Class Members | This Package | All Packages

Syntax
protected static String guessContentTypeFromName( String fname )
Parameters
fname
a filename.
Returns
a guess as to what the content type of the object is, based upon its file name.
Description
Tries to determine the content type of an object, based on the specified "file" component of a URL. This is a convenience method that can be used by subclasses that override the getContentType method.

See Also
getContentType