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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected void__constructor__(String path, int mask) protected void__constructor__(List<File> files, int mask) protected voidfinalize()protected voidprotected void
- 
Constructor Details- 
ShadowFileObserverpublic ShadowFileObserver()
 
- 
- 
Method Details- 
finalize
- 
__constructor__
- 
__constructor__
- 
startWatching- Throws:
- IOException
 
- 
stopWatching
 
-