Example usage for Java javax.activation MimetypesFileTypeMap fields, constructors, methods, implement or subclass
The text is from its open source code.
MimetypesFileTypeMap() The default constructor. | |
MimetypesFileTypeMap(String mimeTypeFileName) Construct a MimetypesFileTypeMap with programmatic entries added from the named file. | |
MimetypesFileTypeMap(InputStream is) Construct a MimetypesFileTypeMap with programmatic entries added from the InputStream. |
void | addMimeTypes(String mime_types) Prepend the MIME type values to the registry. |
String | getContentType(File f) Return the MIME type of the file object. |
String | getContentType(String filename) Return the MIME type based on the specified file name. |