Package digilib.io

Class BaseDirDocuDirectory

  • All Implemented Interfaces:
    Iterable<DocuDirent>

    public class BaseDirDocuDirectory
    extends FsDocuDirectory
    DocuDirectory implementation that looks for scaled images in parallel paths with different base directories.
    Author:
    casties
    • Field Detail

      • baseDirNames

        protected String[] baseDirNames
        list of base directories
    • Constructor Detail

      • BaseDirDocuDirectory

        public BaseDirDocuDirectory()
    • Method Detail

      • configure

        public void configure​(String path,
                              FileOps.FileClass fileClass,
                              DigilibConfiguration dlConfig)
        Configure 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:
        configure in class DocuDirectory
        Parameters:
        path - digilib directory path name
        fileClass - the FileClass
        dlConfig - the DigilibConfiguration
        See Also:
        readDir()
      • readDir

        public boolean readDir()
        Description copied from class: DocuDirectory
        Read the filesystem directory and fill this object. Clears the List and (re)reads all files.
        Specified by:
        readDir in class FsDocuDirectory
        Returns:
        boolean the directory exists
      • refresh

        public boolean refresh()
        Description copied from class: DocuDirectory
        Check to see if the directory has been modified and reread if necessary.
        Specified by:
        refresh in class DocuDirectory
        Returns:
        boolean the directory is valid