public class FileSystemScanner extends AbstractResourceScanner<File>
Queue
.Modifier and Type | Field and Description |
---|---|
protected File |
fileOrDir |
protected FilenameFilter |
filter |
log
Constructor and Description |
---|
FileSystemScanner(BlockingBuffer<File[]> buffer,
File fileOrDir,
FilenameFilter filter) |
Modifier and Type | Method and Description |
---|---|
static IResourceScannerFactory<File> |
newFactory(File fileOrDir,
FilenameFilter filter)
Factory for factory.
|
protected void |
runScanner()
Run the scanner.
|
String |
toString() |
accept, call, getAcceptCount
protected final File fileOrDir
protected final FilenameFilter filter
public FileSystemScanner(BlockingBuffer<File[]> buffer, File fileOrDir, FilenameFilter filter)
buffer
- Chunks of files to be loaded are added to this buffer.fileOrDir
- The file or directory to be loaded.filter
- An optional filter on files that will be accepted when
processing a directory.protected void runScanner() throws Exception
AbstractResourceScanner
runScanner
in class AbstractResourceScanner<File>
Exception
public static IResourceScannerFactory<File> newFactory(File fileOrDir, FilenameFilter filter)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.