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, updateChecksum
public WatcherScanner(org.osgi.framework.BundleContext bundleContext, File directory, String filterString) throws IOException
directory
- the directory to scanfilterString
- a filter for file namesIOException
public Set<File> scan(boolean reportImmediately)
Scanner
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Scanner
IOException
Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.