Package digilib.io

Class DocuDirentFactory


  • public class DocuDirentFactory
    extends Object
    Static factory for DocuDirent instances used in DocuDirectory.
    Author:
    casties
    • Constructor Detail

      • DocuDirentFactory

        public DocuDirentFactory()
    • Method Detail

      • getDocuDirentInstance

        public static DocuDirent getDocuDirentInstance​(FileOps.FileClass fc,
                                                       File file,
                                                       FsDirectory[] scaleDirs)
        Factory for DocuDirents based on file class. Returns an ImageFileSet, TextFile or SVGFile. scaleDirs are only used for ImageFilesets.
        Parameters:
        fc - the FileClass
        file - the File
        scaleDirs - optional additional parameters
        Returns:
        the DocuDirent
      • getInstance

        public static DocuDirent getInstance​(FileOps.FileClass fc,
                                             File file,
                                             FsDirectory[] scaleDirs)
        Factory for DocuDirents based on file class. Returns an ImageFileSet, TextFile or SVGFile. scaleDirs are only used for ImageFilesets.
        Parameters:
        fc - the FileClass
        file - the File
        scaleDirs - optional additional parameters
        Returns:
        the DocuDirent
      • getInstance

        public static DocuDirent getInstance​(FileOps.FileClass fc,
                                             File file,
                                             DocuDirectory parent,
                                             FsDirectory[] scaleDirs)
        Factory for DocuDirents based on file class. Returns an ImageFileSet, TextFile or SVGFile. scaleDirs are only used for ImageFilesets.
        Parameters:
        fc - the FileClass
        file - the File
        parent - the parent
        scaleDirs - optional additional parameters
        Returns:
        the DocuDirent