Package org.robolectric.shadows
Class ShadowFileObserver
java.lang.Object
org.robolectric.shadows.ShadowFileObserver
A shadow implementation of FileObserver that uses java.nio.file.WatchService.
Currently only supports MODIFY, DELETE and CREATE (CREATE will encompass also events that would normally register as MOVED_FROM, and DELETE will encompass also events that would normally register as MOVED_TO). Other event types will be silently ignored.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
__constructor__
(String path, int mask) protected void
__constructor__
(List<File> files, int mask) protected void
finalize()
protected void
protected void
-
Constructor Details
-
ShadowFileObserver
public ShadowFileObserver()
-
-
Method Details
-
finalize
-
__constructor__
-
__constructor__
-
startWatching
- Throws:
IOException
-
stopWatching
-