Class MimeUtils
java.lang.Object
uno.anahata.ai.nb.mime.MimeUtils
Utility class for working with MIME types and file extensions in NetBeans.
-
Method Summary
Modifier and TypeMethodDescriptionScans the NetBeans System Filesystem's "Editors" folder to find all registered MIME types.Scans the NetBeans System Filesystem to find all registered MIME types and their file extensions, returning a map where the key is the extension and the value is the MIME type.
-
Method Details
-
getAllMimeTypes
-
getExtensionToMimeTypeMap
Scans the NetBeans System Filesystem to find all registered MIME types and their file extensions, returning a map where the key is the extension and the value is the MIME type. If an extension is associated with multiple MIME types, the last one found will be stored.- Returns:
- A Map of file extensions to their corresponding MIME types.
-
