Class DirWatcher

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.lang.Runnable

    public final class DirWatcher
    extends java.lang.Object
    implements java.lang.Runnable, java.lang.AutoCloseable
    • Constructor Summary

      Constructors 
      Constructor Description
      DirWatcher​(java.nio.file.Path dir, pro.gravit.launcher.hasher.HashedDir hdir, pro.gravit.launcher.hasher.FileNameMatcher matcher, boolean digest)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FILE_TREE_SUPPORTED

        public static final boolean FILE_TREE_SUPPORTED
    • Constructor Detail

      • DirWatcher

        public DirWatcher​(java.nio.file.Path dir,
                          pro.gravit.launcher.hasher.HashedDir hdir,
                          pro.gravit.launcher.hasher.FileNameMatcher matcher,
                          boolean digest)
                   throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable