Class FileNameFormatter

java.lang.Object
repast.simphony.data2.builder.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 Details

    • FileNameFormatter

      public FileNameFormatter(String file, boolean addTimeStamp)
  • Method Details

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