Package digilib.io
Class DocuImageSet
java.lang.Object
digilib.io.ImageSet
digilib.io.DocuImageSet
- All Implemented Interfaces:
DocuDirent
,Comparable<Object>
ImageSet that is also a DocuDirent that can be put in a DocuDirectory.
- Author:
- casties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileMeta
the FileMeta instanceprotected boolean
is our metadata validprotected String
the "file" nameprotected DocuDirectory
the parent DocuDirectory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Comparator using the file name.getMeta()
Returns the meta-data for this file(set).getName()
The name of the file.Returns the parent Directory.void
readMeta()
Reads meta-data for this Fileset if there is any.void
Sets the meta-data for this file(set).void
setParent
(DocuDirectory parent) Sets the parent Directory.Methods inherited from class digilib.io.ImageSet
add, append, checkMeta, get, get, getAspect, getBiggest, getBiggestPreferred, getHiresIterator, getLoresIterator, getNextBigger, getNextBigger, getNextBiggerPreferred, getNextSmaller, getNextSmaller, getNextSmallerPreferred, getResX, getResY, getSmallest, getSmallestPreferred, setAspect, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface digilib.io.DocuDirent
checkMeta
-
Field Details
-
name
the "file" name -
meta
the FileMeta instance -
metaChecked
protected boolean metaCheckedis our metadata valid -
parent
the parent DocuDirectory
-
-
Constructor Details
-
DocuImageSet
- Parameters:
name
- the name
-
-
Method Details
-
getName
Description copied from interface:DocuDirent
The name of the file. If this is a Fileset, the method returns the name of the default file (for image filesets the highest resolution file).- Specified by:
getName
in interfaceDocuDirent
- Returns:
- the name
-
getParent
Description copied from interface:DocuDirent
Returns the parent Directory.- Specified by:
getParent
in interfaceDocuDirent
- Returns:
- the DocuDirectory
-
setParent
Description copied from interface:DocuDirent
Sets the parent Directory.- Specified by:
setParent
in interfaceDocuDirent
- Parameters:
parent
- The parent to set
-
getMeta
Description copied from interface:DocuDirent
Returns the meta-data for this file(set).- Specified by:
getMeta
in interfaceDocuDirent
- Returns:
- the FileMeta
-
setMeta
Description copied from interface:DocuDirent
Sets the meta-data for this file(set).- Specified by:
setMeta
in interfaceDocuDirent
- Parameters:
fileMeta
- The fileMeta to set
-
readMeta
public void readMeta()Description copied from interface:DocuDirent
Reads meta-data for this Fileset if there is any.- Specified by:
readMeta
in interfaceDocuDirent
-
compareTo
Description copied from interface:DocuDirent
Comparator using the file name. Compares to a String (for binarySearch) or to another DocuDirent (for sort).- Specified by:
compareTo
in interfaceComparable<Object>
- Specified by:
compareTo
in interfaceDocuDirent
- Parameters:
arg0
- the other Object- See Also:
-