|
||||||||
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
FileTypeMap is an abstract class that provides a data type interface for files.
Constructor Summary | |
---|---|
FileTypeMap()
|
Method Summary | |
---|---|
abstract java.lang.String |
getContentType(java.io.File file)
|
abstract java.lang.String |
getContentType(java.lang.String filename)
|
static FileTypeMap |
getDefaultFileTypeMap()
Returns the default FileTypeMap |
static void |
setDefaultFileTypeMap(FileTypeMap fileMap)
Sets the default FileTypeMap for the system. |
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 void setDefaultFileTypeMap(FileTypeMap fileMap)
fileMap
- the new default FileTypeMap
java.lang.SecurityException
- if the caller does not have "SetFactory" RuntimePermissionpublic static FileTypeMap getDefaultFileTypeMap()
public abstract java.lang.String getContentType(java.io.File file)
public abstract java.lang.String getContentType(java.lang.String filename)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |