Top Methods
org.jabref.model.util

public Interface DirectoryMonitor

Known Direct Implementers
org.jabref.gui.util.DefaultDirectoryMonitor
Imports
org.apache.commons.io.monitor.FileAlterationListener, .FileAlterationObserver

Method Summary

Modifier and TypeMethod and Description
public void
addObserver(FileAlterationObserver
The directory to observe.
observer
,
FileAlterationListener
The listener to invoke when the directory changes.
listener
)

Add an observer to the monitor.

public void
removeObserver(FileAlterationObserver
The directory to stop monitoring.
observer
)

Remove an observer from the monitor.

public void
public void

Method Detail

addObserverback to summary
public void addObserver(FileAlterationObserver observer, FileAlterationListener listener)

Add an observer to the monitor.

Parameters
observer:FileAlterationObserver

The directory to observe.

listener:FileAlterationListener

The listener to invoke when the directory changes.

removeObserverback to summary
public void removeObserver(FileAlterationObserver observer)

Remove an observer from the monitor.

Parameters
observer:FileAlterationObserver

The directory to stop monitoring.

shutdownback to summary
public void shutdown()
startback to summary
public void start()