Top Methods
org.jabref.model.util

public Interface FileUpdateMonitor

Known Direct Implementers
org.jabref.gui.util.DefaultFileUpdateMonitor, org.jabref.model.util.DummyFileUpdateMonitor
Imports
java.io.IOException, java.nio.file.Path

Method Summary

Modifier and TypeMethod and Description
public void
addListenerForFile(Path
The file to monitor.
file
,
FileUpdateListener listener)

Add a new file to monitor.

public boolean

Returns:

true is process is running; false otherwise.
isActive
()

Indicates whether the native system's file monitor has successfully started.

public void
removeListener(Path
The path to remove.
path
,
FileUpdateListener listener)

Removes a listener from the monitor.

public void
shutdown()

stops watching for changes

Method Detail

addListenerForFileback to summary
public void addListenerForFile(Path file, FileUpdateListener listener) throws IOException

Add a new file to monitor.

Parameters
file:Path

The file to monitor.

Exceptions
IOException:
if the file does not exist.
isActiveback to summary
public boolean isActive()

Indicates whether the native system's file monitor has successfully started.

Returns:boolean

true is process is running; false otherwise.

removeListenerback to summary
public void removeListener(Path path, FileUpdateListener listener)

Removes a listener from the monitor.

Parameters
path:Path

The path to remove.

shutdownback to summary
public void shutdown()

stops watching for changes