public class WatcherScanner extends Scanner
| Constructor and Description |
|---|
WatcherScanner(org.osgi.framework.BundleContext bundleContext,
File directory,
String filterString)
Create a scanner for the specified directory and file filter
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<File> |
scan(boolean reportImmediately)
Report a set of new, modified or deleted files.
|
getChecksum, initialize, updateChecksumpublic WatcherScanner(org.osgi.framework.BundleContext bundleContext,
File directory,
String filterString)
throws IOException
directory - the directory to scanfilterString - a filter for file namesIOExceptionpublic Set<File> scan(boolean reportImmediately)
Scannerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ScannerIOExceptionCopyright © 2006–2015 The Apache Software Foundation. All rights reserved.