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 FileMetathe FileMeta instanceprotected booleanis our metadata validprotected Stringthe "file" nameprotected DocuDirectorythe parent DocuDirectory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintComparator using the file name.getMeta()Returns the meta-data for this file(set).getName()The name of the file.Returns the parent Directory.voidreadMeta()Reads meta-data for this Fileset if there is any.voidSets the meta-data for this file(set).voidsetParent(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, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:DocuDirentThe 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:
getNamein interfaceDocuDirent- Returns:
- the name
-
getParent
Description copied from interface:DocuDirentReturns the parent Directory.- Specified by:
getParentin interfaceDocuDirent- Returns:
- the DocuDirectory
-
setParent
Description copied from interface:DocuDirentSets the parent Directory.- Specified by:
setParentin interfaceDocuDirent- Parameters:
parent- The parent to set
-
getMeta
Description copied from interface:DocuDirentReturns the meta-data for this file(set).- Specified by:
getMetain interfaceDocuDirent- Returns:
- the FileMeta
-
setMeta
Description copied from interface:DocuDirentSets the meta-data for this file(set).- Specified by:
setMetain interfaceDocuDirent- Parameters:
fileMeta- The fileMeta to set
-
readMeta
public void readMeta()Description copied from interface:DocuDirentReads meta-data for this Fileset if there is any.- Specified by:
readMetain interfaceDocuDirent
-
compareTo
Description copied from interface:DocuDirentComparator using the file name. Compares to a String (for binarySearch) or to another DocuDirent (for sort).- Specified by:
compareToin interfaceComparable<Object>- Specified by:
compareToin interfaceDocuDirent- Parameters:
arg0- the other Object- See Also:
-