Module org.eclipse.angus.activation
Package org.eclipse.angus.activation
Class MailcapRegistryProviderImpl
java.lang.Object
org.eclipse.angus.activation.MailcapRegistryProviderImpl
- All Implemented Interfaces:
MailcapRegistryProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetByFileName
(String name) Retrieve an instance of the MailcapRegistry based on the name of the file where the MailcapEntries are stored.getByInputStream
(InputStream inputStream) Retrieve an instance of the MailcapRegistry based on the InputStream that is used to read data from some named resource.Retrieve an instance of the in-memory implementation of the MailcapRegistry.
-
Constructor Details
-
MailcapRegistryProviderImpl
public MailcapRegistryProviderImpl()Default constructor
-
-
Method Details
-
getByFileName
Description copied from interface:MailcapRegistryProvider
Retrieve an instance of the MailcapRegistry based on the name of the file where the MailcapEntries are stored.- Specified by:
getByFileName
in interfaceMailcapRegistryProvider
- Parameters:
name
- The name of the file that stores MailcapEntries.- Returns:
- The instance of the
MailcapRegistry
, or null if none are found. - Throws:
IOException
- If an instance of the MailcapRegistry class cannot be found or loaded.
-
getByInputStream
Description copied from interface:MailcapRegistryProvider
Retrieve an instance of the MailcapRegistry based on the InputStream that is used to read data from some named resource.- Specified by:
getByInputStream
in interfaceMailcapRegistryProvider
- Parameters:
inputStream
- InputStream for some resource that contains MailcapEntries.- Returns:
- The instance of the
MailcapRegistry
, or null if none are found. - Throws:
IOException
- If an instance of the MailcapRegistry class cannot be found or loaded.
-
getInMemory
Description copied from interface:MailcapRegistryProvider
Retrieve an instance of the in-memory implementation of the MailcapRegistry.- Specified by:
getInMemory
in interfaceMailcapRegistryProvider
- Returns:
- In-memory implementation of the MailcapRegistry.
-