Class PropertiesEmailFileReader

    • Constructor Detail

      • PropertiesEmailFileReader

        public PropertiesEmailFileReader()
    • Method Detail

      • getFormatDescription

        public String getFormatDescription()
        Returns the description of the file format.
        Returns:
        the description
      • getFormatExtensions

        public String[] getFormatExtensions()
        Returns the extension(s) of the file format (without dot).
        Returns:
        the extensions (no dot!)
      • getAddresses

        protected EmailAddress[] getAddresses​(Properties props,
                                              String key)
                                       throws Exception
        Reads the email addresses from the specified property.
        Parameters:
        props - the properties to use
        key - the property to read
        Returns:
        the generated email addresses
        Throws:
        Exception - in case the splitting fails
      • getFiles

        protected File[] getFiles​(Properties props,
                                  String key)
                           throws Exception
        Reads the files from the specified property.
        Parameters:
        props - the properties to use
        key - the property to read
        Returns:
        the generated files
        Throws:
        Exception - in case the splitting fails
      • doRead

        protected Email doRead()
        Performs the actual reading.
        Specified by:
        doRead in class AbstractEmailReader
        Returns:
        the email that was read, null in case of error