- 
 public interface MailcapRegistryProviderThis interface defines a factory forMailcapRegistry. An implementation of this interface should provide instances of the MailcapRegistry based on the way how to access the storage for MailcapEntries.Jakarta Activation uses Service Provider Interface and ServiceLoaderto obtain an instance of the implementation of theMailcapRegistryProvider.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description MailcapRegistrygetByFileName(java.lang.String name)Retrieve an instance of the MailcapRegistry based on the name of the file where the MailcapEntries are stored.MailcapRegistrygetByInputStream(java.io.InputStream inputStream)Retrieve an instance of the MailcapRegistry based on the InputStream that is used to read data from some named resource.MailcapRegistrygetInMemory()Retrieve an instance of the in-memory implementation of the MailcapRegistry.
 
- 
- 
- 
Method Detail- 
getByFileNameMailcapRegistry getByFileName(java.lang.String name) throws java.io.IOException Retrieve an instance of the MailcapRegistry based on the name of the file where the MailcapEntries are stored.- Parameters:
- name- The name of the file that stores MailcapEntries.
- Returns:
- The instance of the MailcapRegistry, or null if none are found.
- Throws:
- java.io.IOException- If an instance of the MailcapRegistry class cannot be found or loaded.
 
 - 
getByInputStreamMailcapRegistry getByInputStream(java.io.InputStream inputStream) throws java.io.IOException Retrieve an instance of the MailcapRegistry based on the InputStream that is used to read data from some named resource.- Parameters:
- inputStream- InputStream for some resource that contains MailcapEntries.
- Returns:
- The instance of the MailcapRegistry, or null if none are found.
- Throws:
- java.io.IOException- If an instance of the MailcapRegistry class cannot be found or loaded.
 
 - 
getInMemoryMailcapRegistry getInMemory() Retrieve an instance of the in-memory implementation of the MailcapRegistry.- Returns:
- In-memory implementation of the MailcapRegistry.
- Throws:
- java.util.NoSuchElementException- If no implementations were found.
- java.util.ServiceConfigurationError- If no implementations were loaded.
 
 
- 
 
-