public interface MimeTypeRegistry
Application must implement 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
MimeTypeRegistryProvider
methods.
Implementation of the MimeTypeRegistry must contain in-memory storage for MimeTypeEntries.
Modifier and Type | Method and Description |
---|---|
void |
appendToRegistry(java.lang.String mime_types)
Appends string of entries to the types registry
|
MimeTypeEntry |
getMimeTypeEntry(java.lang.String file_ext)
get the MimeTypeEntry based on the file extension
|
default java.lang.String |
getMIMETypeString(java.lang.String file_ext)
Get the MIME type string corresponding to the file extension.
|
MimeTypeEntry getMimeTypeEntry(java.lang.String file_ext)
file_ext
- the file extensiondefault java.lang.String getMIMETypeString(java.lang.String file_ext)
file_ext
- the file extensionvoid appendToRegistry(java.lang.String mime_types)
mime_types
- the mime.types string