Package org.eclipse.angus.activation
Class MailcapRegistryProviderImpl
- java.lang.Object
-
- org.eclipse.angus.activation.MailcapRegistryProviderImpl
-
- All Implemented Interfaces:
MailcapRegistryProvider
public class MailcapRegistryProviderImpl extends Object implements MailcapRegistryProvider
-
-
Constructor Summary
Constructors Constructor Description MailcapRegistryProviderImpl()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MailcapRegistrygetByFileName(String name)Retrieve an instance of the MailcapRegistry based on the name of the file where the MailcapEntries are stored.MailcapRegistrygetByInputStream(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
-
getByFileName
public MailcapRegistry getByFileName(String name) throws IOException
Description copied from interface:MailcapRegistryProviderRetrieve an instance of the MailcapRegistry based on the name of the file where the MailcapEntries are stored.- Specified by:
getByFileNamein 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
public MailcapRegistry getByInputStream(InputStream inputStream) throws IOException
Description copied from interface:MailcapRegistryProviderRetrieve an instance of the MailcapRegistry based on the InputStream that is used to read data from some named resource.- Specified by:
getByInputStreamin 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
public MailcapRegistry getInMemory()
Description copied from interface:MailcapRegistryProviderRetrieve an instance of the in-memory implementation of the MailcapRegistry.- Specified by:
getInMemoryin interfaceMailcapRegistryProvider- Returns:
- In-memory implementation of the MailcapRegistry.
-
-