Class MailcapRegistryProviderImpl

    • Constructor Detail

      • MailcapRegistryProviderImpl

        public MailcapRegistryProviderImpl()
        Default constructor
    • Method Detail

      • 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.