Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.activation.FileTypeMap
public abstract class FileTypeMap
extends java.lang.Object
Method Summary | |
abstract String |
|
abstract String |
|
static FileTypeMap |
|
static void |
|
public abstract String getContentType(File file)
Returns the content type of the specified file.
- Parameters:
file
- the file to classify
public abstract String getContentType(String filename)
Returns the content type of the specified file path.
- Parameters:
filename
- the path of the file to classify
public static FileTypeMap getDefaultFileTypeMap()
Returns the system default file type map. If one has not been set, this returns a MimetypesFileTypeMap.
public static void setDefaultFileTypeMap(FileTypeMap map)
Sets the default file type map.
- Parameters:
map
- the new file type map