javax.activation
public abstract class FileTypeMap extends Object
| Method Summary | |
|---|---|
| abstract String | getContentType(File file)
Returns the content type of the specified file. |
| abstract String | getContentType(String filename)
Returns the content type of the specified file path. |
| static FileTypeMap | getDefaultFileTypeMap()
Returns the system default file type map.
|
| static void | setDefaultFileTypeMap(FileTypeMap map)
Sets the default file type map. |
Parameters: file the file to classify
Parameters: filename the path of the file to classify
Parameters: map the new file type map