better.files

FileMonitor

abstract class FileMonitor extends Thread

A thread that can monitor a file (or a directory) This class's onDelete, onCreate, onModify etc are available to be overridden

Linear Supertypes
Thread, Runnable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileMonitor
  2. Thread
  3. Runnable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileMonitor(file: File, recursive: Boolean = true)

  2. new FileMonitor(file: File, maxDepth: Int)

    file
    maxDepth

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. final def checkAccess(): Unit

    Definition Classes
    Thread
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    Thread → AnyRef
    Annotations
    @throws( ... )
  9. def dispatch(eventType: Kind[Path], file: File): Unit

    Dispatch a StandardWatchEventKind to an appropriate callback Override this if you don't want to manually handle onDelete/onCreate/onModify separately

    Dispatch a StandardWatchEventKind to an appropriate callback Override this if you don't want to manually handle onDelete/onCreate/onModify separately

    eventType
    file

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def getContextClassLoader(): ClassLoader

    Definition Classes
    Thread
    Annotations
    @CallerSensitive()
  15. def getId(): Long

    Definition Classes
    Thread
  16. final def getName(): String

    Definition Classes
    Thread
  17. final def getPriority(): Int

    Definition Classes
    Thread
  18. def getStackTrace(): Array[StackTraceElement]

    Definition Classes
    Thread
  19. def getState(): State

    Definition Classes
    Thread
  20. final def getThreadGroup(): ThreadGroup

    Definition Classes
    Thread
  21. def getUncaughtExceptionHandler(): UncaughtExceptionHandler

    Definition Classes
    Thread
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. def interrupt(): Unit

    Definition Classes
    FileMonitor → Thread
  24. final def isAlive(): Boolean

    Definition Classes
    Thread
  25. final def isDaemon(): Boolean

    Definition Classes
    Thread
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def isInterrupted(): Boolean

    Definition Classes
    Thread
  28. final def join(): Unit

    Definition Classes
    Thread
    Annotations
    @throws( ... )
  29. final def join(arg0: Long, arg1: Int): Unit

    Definition Classes
    Thread
    Annotations
    @throws( ... )
  30. final def join(arg0: Long): Unit

    Definition Classes
    Thread
    Annotations
    @throws( ... )
  31. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. def onCreate(file: File): Unit

  35. def onDelete(file: File): Unit

  36. def onException(exception: Throwable): Unit

  37. def onModify(file: File): Unit

  38. def onUnknownEvent(event: WatchEvent[_], root: File): Unit

  39. def process(key: WatchKey): Boolean

    Attributes
    protected[this]
  40. def run(): Unit

    Definition Classes
    FileMonitor → Thread → Runnable
  41. val service: WatchService

    Attributes
    protected[this]
  42. def setContextClassLoader(arg0: ClassLoader): Unit

    Definition Classes
    Thread
  43. final def setDaemon(arg0: Boolean): Unit

    Definition Classes
    Thread
  44. final def setName(arg0: String): Unit

    Definition Classes
    Thread
  45. final def setPriority(arg0: Int): Unit

    Definition Classes
    Thread
  46. def setUncaughtExceptionHandler(arg0: UncaughtExceptionHandler): Unit

    Definition Classes
    Thread
  47. def start(): Unit

    Definition Classes
    FileMonitor → Thread
  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  49. def toString(): String

    Definition Classes
    Thread → AnyRef → Any
  50. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. def watch(aFile: File, depth: Int): Unit

    Attributes
    protected[this]

Deprecated Value Members

  1. def countStackFrames(): Int

    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  2. def destroy(): Unit

    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  3. final def resume(): Unit

    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  4. final def stop(arg0: Throwable): Unit

    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  5. final def stop(): Unit

    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  6. final def suspend(): Unit

    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Thread

Inherited from Runnable

Inherited from AnyRef

Inherited from Any

Ungrouped