javax.activation
public abstract class FileTypeMap extends Object
Constructor Summary | |
---|---|
FileTypeMap() |
Method Summary | |
---|---|
abstract String | getContentType(File file) |
abstract String | getContentType(String filename) |
static FileTypeMap | getDefaultFileTypeMap()
Returns the default FileTypeMap |
static void | setDefaultFileTypeMap(FileTypeMap fileMap)
Sets the default FileTypeMap for the system. |
Returns: the default FileTYpeMap; if null returns a MimetypesFileTypeMap
Parameters: fileMap the new default FileTypeMap
Throws: SecurityException if the caller does not have "SetFactory" RuntimePermission