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:
- $Revision: 1.3 $ $Date: 2004/03/10 10:00:22 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileTypeMap
public FileTypeMap()
getContentType
public abstract String getContentType(File file)
getContentType
public abstract String getContentType(String filename)
setDefaultFileTypeMap
public static void setDefaultFileTypeMap(FileTypeMap map)
- Sets the default FileTypeMap for the system
getDefaultFileTypeMap
public static FileTypeMap getDefaultFileTypeMap()
- Returns the default FileTypeMap
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.