Class MailcapRegistryProviderImpl

java.lang.Object
org.eclipse.angus.activation.MailcapRegistryProviderImpl
All Implemented Interfaces:
MailcapRegistryProvider

public class MailcapRegistryProviderImpl extends Object implements MailcapRegistryProvider
  • Constructor Details

    • MailcapRegistryProviderImpl

      public MailcapRegistryProviderImpl()
      Default constructor
  • Method Details

    • getByFileName

      public MailcapRegistry getByFileName(String name) throws IOException
      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 interface MailcapRegistryProvider
      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: 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 interface MailcapRegistryProvider
      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: MailcapRegistryProvider
      Retrieve an instance of the in-memory implementation of the MailcapRegistry.
      Specified by:
      getInMemory in interface MailcapRegistryProvider
      Returns:
      In-memory implementation of the MailcapRegistry.