javax.activation
Class FileTypeMap
java.lang.Object
javax.activation.FileTypeMap
- Direct Known Subclasses:
- MimetypesFileTypeMap
public abstract class FileTypeMap
- extends Object
FileTypeMap is an abstract class that provides a data type interface for files.
- Version:
- $Rev: 467742 $ $Date: 2011/05/07 04:32:39 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileTypeMap
public FileTypeMap()
setDefaultFileTypeMap
public static void setDefaultFileTypeMap(FileTypeMap fileMap)
- Sets the default FileTypeMap for the system.
- Parameters:
fileMap - the new default FileTypeMap
- Throws:
SecurityException - if the caller does not have "SetFactory" RuntimePermission
getDefaultFileTypeMap
public static FileTypeMap getDefaultFileTypeMap()
- Returns the default FileTypeMap
- Returns:
- the default FileTYpeMap; if null returns a MimetypesFileTypeMap
getContentType
public abstract String getContentType(File file)
getContentType
public abstract String getContentType(String filename)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.