Package digilib.io
Interface DocuDirent
- All Superinterfaces:
Comparable<Object>
- All Known Implementing Classes:
DocuDirentImpl,DocuImageSet,ImageFileSet,TextFile
Interface for an object that represents the content of a DocuDirectory.
- Author:
- casties
-
Method Summary
Modifier and TypeMethodDescriptionvoidChecks metadata and does something with it.intComparator 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.
-
Method Details
-
getName
String getName()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).- Returns:
- the name
-
getParent
DocuDirectory getParent()Returns the parent Directory.- Returns:
- the DocuDirectory
-
setParent
Sets the parent Directory.- Parameters:
parent- The parent to set
-
readMeta
void readMeta()Reads meta-data for this Fileset if there is any. -
checkMeta
void checkMeta()Checks metadata and does something with it. -
getMeta
FileMeta getMeta()Returns the meta-data for this file(set).- Returns:
- the FileMeta
-
setMeta
Sets the meta-data for this file(set).- Parameters:
fileMeta- The fileMeta to set
-
compareTo
Comparator using the file name. Compares to a String (for binarySearch) or to another DocuDirent (for sort).- Specified by:
compareToin interfaceComparable<Object>- Parameters:
arg0- the other Object- See Also:
-