public abstract class FileTypeMap extends Object
Constructor and Description |
---|
FileTypeMap() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static void setDefaultFileTypeMap(FileTypeMap fileMap)
fileMap
- the new default FileTypeMapSecurityException
- if the caller does not have "SetFactory" RuntimePermissionpublic static FileTypeMap getDefaultFileTypeMap()
Copyright © 2013. All rights reserved.