Interface TrackingFileManager

All Known Implementing Classes:
DefaultTrackingFileManager

public interface TrackingFileManager
Manages access to a properties file.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    delete(File file)
    Deletes the specified properties file, if exists.
    read(File file)
    Reads up the specified properties file into Properties, if exists, otherwise null is returned.
    update(File file, Map<String,String> updates)
    Applies updates to specified properties file and returns resulting Properties with contents same as in updated file, never null.
  • Method Details

    • read

      Reads up the specified properties file into Properties, if exists, otherwise null is returned.
    • update

      Properties update(File file, Map<String,String> updates)
      Applies updates to specified properties file and returns resulting Properties with contents same as in updated file, never null.
    • delete

      boolean delete(File file)
      Deletes the specified properties file, if exists. If file existed and was deleted, returns true.
      Since:
      1.9.25