com.faunos.util.io.file
Interface MimeMap

All Known Implementing Classes:
ExtensionMimeMap

public interface MimeMap

An interface for detecting the MIME type of the contents of a file. Strategies and implementations range from keying off the file name extension (simple, fast, but error prone) to actually opening the file and examining its contents for magic headers.

Author:
Babak Farhang

Method Summary
 String getMimeType(File file)
          Returns the MIME type for the specified file, or null, if one cannot be determined.
 

Method Detail

getMimeType

String getMimeType(File file)
Returns the MIME type for the specified file, or null, if one cannot be determined.



SourceForge.net Logo