public class SimpleDirectoryScanner extends AbstractLoader implements DirectoryLoader
| Constructor and Description |
|---|
SimpleDirectoryScanner(DirectorySource source)
Returns a new directory scanner for a given source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears errors and warnings, automatically called for new scans.
|
protected List<FileSource> |
doScan(File fDir)
Does the actual scan of a directory.
|
protected List<FileSource> |
getFiles()
Returns a set of files found in the given directory.
|
DirectorySource |
getSource()
Returns the source set for the loader, that is where the loader loads information from.
|
List<String> |
lastInfos()
Returns collected information from a scan.
|
List<String> |
lastWarnings()
Returns collected warnings from a scan.
|
FileSourceList |
load()
Loads information from a source and returns a specific object.
|
String |
toString() |
getLoadErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLoadErrors, validateSourcepublic SimpleDirectoryScanner(DirectorySource source)
source - the source for the scannerpublic void clear()
protected List<FileSource> getFiles()
protected List<FileSource> doScan(File fDir)
fDir - starting directorypublic List<String> lastWarnings()
public List<String> lastInfos()
public DirectorySource getSource()
InfoLoadergetSource in interface DirectoryLoadergetSource in interface InfoLoaderpublic FileSourceList load()
InfoLoaderInfoLoader.getLoadErrors() to retrieve them.load in interface DirectoryLoaderload in interface InfoLoaderCopyright © 2010–2017. All rights reserved.