Package org.robolectric.shadows
Class ShadowFileObserver
java.lang.Object
org.robolectric.shadows.ShadowFileObserver
@Implements(android.os.FileObserver.class) public class ShadowFileObserver extends Object
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
Constructors Constructor Description ShadowFileObserver()
-
Method Summary
Modifier and Type Method Description protected void
__constructor__(String path, int mask)
protected void
__constructor__(List<File> files, int mask)
protected void
finalize()
protected void
startWatching()
protected void
stopWatching()
-
Constructor Details
-
ShadowFileObserver
public ShadowFileObserver()
-
-
Method Details