Package digilib.io
Class DocuDirentFactory
- java.lang.Object
-
- digilib.io.DocuDirentFactory
-
public class DocuDirentFactory extends Object
Static factory for DocuDirent instances used in DocuDirectory.- Author:
- casties
-
-
Field Summary
Fields Modifier and Type Field Description static Class<? extends DocuDirent>
imageFileClass
static Class<? extends DocuDirent>
svgFileClass
static Class<? extends DocuDirent>
textFileClass
-
Constructor Summary
Constructors Constructor Description DocuDirentFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocuDirent
getDocuDirentInstance(FileOps.FileClass fc, File file, FsDirectory[] scaleDirs)
Factory for DocuDirents based on file class.static DocuDirent
getInstance(FileOps.FileClass fc, File file, DocuDirectory parent, FsDirectory[] scaleDirs)
Factory for DocuDirents based on file class.static DocuDirent
getInstance(FileOps.FileClass fc, File file, FsDirectory[] scaleDirs)
Factory for DocuDirents based on file class.static void
setDocuDirentClass(FileOps.FileClass fc, Class<? extends DocuDirent> clazz)
-
-
-
Field Detail
-
imageFileClass
public static Class<? extends DocuDirent> imageFileClass
-
textFileClass
public static Class<? extends DocuDirent> textFileClass
-
svgFileClass
public static Class<? extends DocuDirent> svgFileClass
-
-
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 FileClassfile
- the FilescaleDirs
- 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 FileClassfile
- the FilescaleDirs
- 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 FileClassfile
- the Fileparent
- the parentscaleDirs
- optional additional parameters- Returns:
- the DocuDirent
-
setDocuDirentClass
public static void setDocuDirentClass(FileOps.FileClass fc, Class<? extends DocuDirent> clazz)
-
-