FileNameMap


FileNameMap java.net

Java 1.1

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  );   } 

Passed To

URLConnection.setFileNameMap( )

Returned By

URLConnection.getFileNameMap( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net