Class FileUtil.FilesWatchdog

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    FileUtil

    @Beta
    public static class FileUtil.FilesWatchdog
    extends java.lang.Object
    implements java.io.Closeable
    It stores all created files and directory. You can get all watched files or remove all close(). Also you can get all errors after closing. Enable it before FileUtil.ENABLE_WATCHDOG. Then get it FileUtil.getFilesWatchdog().
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Delete all files created via FileUtil.
      java.util.Collection<java.nio.file.Path> getAll()
      Get all created files and dirs.
      java.util.Map<java.nio.file.Path,​java.lang.Throwable> getError()
      Get all errors after closing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait