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 TypeMethodDescriptionvoid
Checks metadata and does something with it.int
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.
-
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:
compareTo
in interfaceComparable<Object>
- Parameters:
arg0
- the other Object- See Also:
-