Class FileWatch

    • Constructor Detail

      • FileWatch

        public FileWatch​(File fileToWatch,
                         long period,
                         boolean startHook,
                         FileWatch.Listener listener)
        Watch a file or directory (one level!) against changes. Check the modify date to recognize a change. It has two ways to work: 1. Manual check, every time you use the file, call the checkFile() method. 2. Use of a timer.
        Parameters:
        fileToWatch -
        period -
        startHook -
        listener -