public abstract class FileTypeMap
extends java.lang.Object
| Constructor and Description |
|---|
FileTypeMap() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getContentType(java.io.File file)
Returns the content type of the specified file.
|
abstract java.lang.String |
getContentType(java.lang.String filename)
Returns the content type of the specified file path.
|
static FileTypeMap |
getDefaultFileTypeMap()
Returns the system default file type map.
|
static void |
setDefaultFileTypeMap(FileTypeMap map)
Sets the default file type map.
|
public static FileTypeMap getDefaultFileTypeMap()
public static void setDefaultFileTypeMap(FileTypeMap map)
map - the new file type mappublic abstract java.lang.String getContentType(java.io.File file)
file - the file to classifypublic abstract java.lang.String getContentType(java.lang.String filename)
filename - the path of the file to classify