Class AutomationRenderer


  • public class AutomationRenderer
    extends Object
    Class introduced to share code between sync and lazy automation based renditions
    Since:
    7.2
    Author:
    Tiry
    • Method Detail

      • getFilenameWithExtension

        public static String getFilenameWithExtension​(String filename,
                                                      String mimeType,
                                                      String defaultExtension)
        Generate a revised filename whose extension is either based on the supplied mimeType if applicable or the supplied default extension.
        Parameters:
        filename - the filename to use
        mimeType - the mimeType from which the assigned extension is derived
        defaultExtension - the default extension to be assigned if the mimeType has no corresponding extension
        Returns:
        the filename with the revised extension
        Since:
        7.4