Application must implement jakarta.activation.spi.MimeTypeRegistryProvider
to create new instances of the MimeTypeRegistry. Implementation of the MimeTypeRegistry
can store MimeTypeEntries in different ways and that storage must be accessible through the
jakarta.activation.spi.MimeTypeRegistryProvider methods.
Implementation of the MimeTypeRegistry must contain in-memory storage for MimeTypeEntries.
| Modifier and Type | Method and Description |
|---|---|
| public void | appendToRegistry(String
the mime.types string mime_types)Appends string of entries to the types registry |
| public MimeTypeEntry | Returns: the MimeTypeEntrythe file extension file_ext)get the MimeTypeEntry based on the file extension |
| public default String | Returns: the MIME type stringthe file extension file_ext)Get the MIME type string corresponding to the file extension. |
| appendToRegistry | back to summary |
|---|---|
| public void appendToRegistry(String mime_types) Appends string of entries to the types registry
| |
| getMimeTypeEntry | back to summary |
|---|---|
| public MimeTypeEntry getMimeTypeEntry(String file_ext) get the MimeTypeEntry based on the file extension
| |
| getMIMETypeString | back to summary |
|---|---|
| public default String getMIMETypeString(String file_ext) Get the MIME type string corresponding to the file extension. | |