public abstract class GenericLayerScanner extends LayerScanner
LayerScanner.Callback, LayerScanner.Spi| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
_TAG  | 
protected static int | 
ACCEPT  | 
protected static int | 
DELAY  | 
protected static int | 
REJECT  | 
static java.lang.String | 
TAG  | 
canceled, database, name| Modifier | Constructor and Description | 
|---|---|
protected  | 
GenericLayerScanner(java.lang.String name)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract int | 
checkFile(int depth,
         java.io.File f)  | 
protected static java.io.File[] | 
getDefaultScanDirs(java.lang.String subdir,
                  boolean ignoreInternal)
Returns an array of scanning directories based on the specified subdirectory using the result
 of  
ScanLayersService.getRootDirs() as the parent
 directories. | 
protected abstract java.lang.String | 
getProviderHint(int depth,
               java.io.File f)  | 
protected abstract java.io.File[] | 
getScanDirs()  | 
void | 
run()  | 
protected void | 
scanDirectory(int depth,
             java.io.File dir)
Scans the specified directory. 
 | 
cancel, cancelImpl, debug, error, getName, layerDiscovered, prepare, progress, resetpublic static final java.lang.String TAG
protected static final int ACCEPT
protected static final int REJECT
protected static final int DELAY
public static java.lang.String _TAG
protected abstract java.io.File[] getScanDirs()
public final void run()
run in interface java.lang.Runnablerun in class LayerScannerprotected void scanDirectory(int depth,
                             java.io.File dir)
depth - The recursion depthdir - The directory to scanprotected abstract int checkFile(int depth,
                                 java.io.File f)
protected abstract java.lang.String getProviderHint(int depth,
                                                    java.io.File f)
protected static java.io.File[] getDefaultScanDirs(java.lang.String subdir,
                                                   boolean ignoreInternal)
ScanLayersService.getRootDirs() as the parent
 directories.subdir - the subdirectory name to append to the known root directories.ignoreInternal - specify if internal directories should be ignored.