Package digilib.io
Class BaseDirDocuDirectory
java.lang.Object
digilib.io.DocuDirectory
digilib.io.FsDocuDirectory
digilib.io.BaseDirDocuDirectory
- All Implemented Interfaces:
- Iterable<DocuDirent>
DocuDirectory implementation that looks for scaled images in parallel paths
 with different base directories.
- Author:
- casties
- 
Field SummaryFieldsFields inherited from class digilib.io.FsDocuDirectorydirFields inherited from class digilib.io.DocuDirectorydirMTime, dirName, fileClass, files, isValid, logger, meta, objectATime, parent
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidconfigure(String path, FileOps.FileClass fileClass, DigilibConfiguration dlConfig) Configure object with digilib directory path and a parent DocuDirCache.booleanreadDir()Read the filesystem directory and fill this object.booleanrefresh()Check to see if the directory has been modified and reread if necessary.Methods inherited from class digilib.io.FsDocuDirectorycreateFilename, createParentName, getDir, getFilenames, getParentDirectoryMethods inherited from class digilib.io.DocuDirectorycheckMeta, find, get, getAccessTime, getDirMTime, getDirName, getMeta, getParent, indexOf, isBasenameAt, isPrefixBasenameAt, isRead, isValid, iterator, readMeta, setParent, size, touchMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
baseDirNameslist of base directories
 
- 
- 
Constructor Details- 
BaseDirDocuDirectorypublic BaseDirDocuDirectory()
 
- 
- 
Method Details- 
configureConfigure object with digilib directory path and a parent DocuDirCache. Directory names at the given path are appended to the base directories from the cache. The directory is checked on disk and isValid is set.- Overrides:
- configurein class- DocuDirectory
- Parameters:
- path- digilib directory path name
- fileClass- the FileClass
- dlConfig- the DigilibConfiguration
- See Also:
 
- 
readDirpublic boolean readDir()Description copied from class:DocuDirectoryRead the filesystem directory and fill this object. Clears the List and (re)reads all files.- Specified by:
- readDirin class- FsDocuDirectory
- Returns:
- boolean the directory exists
 
- 
refreshpublic boolean refresh()Description copied from class:DocuDirectoryCheck to see if the directory has been modified and reread if necessary.- Specified by:
- refreshin class- DocuDirectory
- Returns:
- boolean the directory is valid
 
 
-