March 2005
Beginner to intermediate
1254 pages
104h 21m
English
FileNameMap
This interface defines a single
method that is called to obtain the MIME type of a file based on the name of
the file. The fileNameMap field of the
URLConnection class refers to an object that
implements this interface. The filename-to-file-type map it
implements is used by the static
URLConnection.guessContentTypeFromName( ) method.
public interface FileNameMap { // Public Instance Methods String getContentTypeFor(String fileName); }
URLConnection.setFileNameMap( )
URLConnection.getFileNameMap( )
Read now
Unlock full access