MimeTypeRegistry. An
implementation of this interface should provide instances of the MimeTypeRegistry
based on the way how to access the storage for MimeTypeEntries.
Jakarta Activation uses Service Provider Interface and ServiceLoader
to obtain an instance of the implementation of the MimeTypeRegistryProvider.
| Modifier and Type | Method and Description |
|---|---|
| public MimeTypeRegistry | Returns: The instance of theMimeTypeRegistry, or null if none are found.The name of the file that stores MimeTypeEntries. name)Retrieve an instance of the MimeTypeRegistry based on the name of the file where the MimeTypeEntries are stored. |
| public MimeTypeRegistry | Returns: The instance of theMimeTypeRegistry, or null if none are found.InputStream for some resource that contains MimeTypeEntries. inputStream)Retrieve an instance of the MimeTypeRegistry based on the InputStream that is used to read data from some named resource. |
| public MimeTypeRegistry | Returns: In-memory implementation of the MimeTypeRegistry.Retrieve an instance of the in-memory implementation of the MimeTypeRegistry. |
| getByFileName | back to summary |
|---|---|
| public MimeTypeRegistry getByFileName(String name) throws IOException Retrieve an instance of the MimeTypeRegistry based on the name of the file where the MimeTypeEntries are stored.
| |
| getByInputStream | back to summary |
|---|---|
| public MimeTypeRegistry getByInputStream(InputStream inputStream) throws IOException Retrieve an instance of the MimeTypeRegistry based on the InputStream that is used to read data from some named resource.
| |
| getInMemory | back to summary |
|---|---|
| public MimeTypeRegistry getInMemory() Retrieve an instance of the in-memory implementation of the MimeTypeRegistry.
Jakarta Activation can throw
| |