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: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Mi, 25. Okt 2006) $
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 © 2003-2012 Apache Software Foundation. All Rights Reserved.