|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.activation.FileTypeMap
public abstract class FileTypeMap
Classifier for the MIME content type of files.
Constructor Summary | |
---|---|
FileTypeMap()
|
Method Summary | |
---|---|
abstract String |
getContentType(File file)
Returns the content type of the specified file. |
abstract String |
getContentType(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 String getContentType(File file)
file
- the file to classifypublic abstract String getContentType(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 |