|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.activation.FileTypeMap
Classifier for the MIME content type of files.
Constructor Summary | |
FileTypeMap()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileTypeMap()
Method Detail |
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |