Class FileNameFormatter


  • public class FileNameFormatter
    extends Object
    Class that will format a file name by optionally adding a timestamp and renaming any existing files with same name.
    Author:
    Nick Collier
    • Constructor Detail

      • FileNameFormatter

        public FileNameFormatter​(String file,
                                 boolean addTimeStamp)
    • Method Detail

      • getFilename

        public String getFilename()
        Gets the formatted file name.
        Returns:
        the formatted file name.
      • getFilename

        public String getFilename​(String suffix)
        Gets the file name with the suffix append to it.
        Parameters:
        suffix -
        Returns: