Package digilib.io
Class DocuDirentImpl
java.lang.Object
digilib.io.DocuDirentImpl
- All Implemented Interfaces:
- DocuDirent,- Comparable<Object>
- Direct Known Subclasses:
- TextFile
Abstract directory entry in a DocuDirectory.
- Author:
- casties
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static FileOps.FileClassthe file class of this fileprotected FileMetametadata for this fileprotected DocuDirectorythe parent directory
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidChecks metadata and does something with it.intComparator using the file name.abstract FilegetFile()static FileOps.FileClassgetMeta()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.
- 
Field Details- 
fileClassthe file class of this file
- 
metametadata for this file
- 
parentthe parent directory
 
- 
- 
Constructor Details- 
DocuDirentImplpublic DocuDirentImpl()
 
- 
- 
Method Details- 
getFile
- 
checkMetapublic abstract void checkMeta()Description copied from interface:DocuDirentChecks metadata and does something with it.- Specified by:
- checkMetain interface- DocuDirent
 
- 
getMetaDescription copied from interface:DocuDirentReturns the meta-data for this file(set).- Specified by:
- getMetain interface- DocuDirent
- Returns:
- the FileMeta
 
- 
setMetaDescription copied from interface:DocuDirentSets the meta-data for this file(set).- Specified by:
- setMetain interface- DocuDirent
- Parameters:
- fileMeta- The fileMeta to set
 
- 
readMetapublic void readMeta()Description copied from interface:DocuDirentReads meta-data for this Fileset if there is any.- Specified by:
- readMetain interface- DocuDirent
 
- 
getNameDescription 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 interface- DocuDirent
- Returns:
- the name
 
- 
getParentDescription copied from interface:DocuDirentReturns the parent Directory.- Specified by:
- getParentin interface- DocuDirent
- Returns:
- the DocuDirectory
 
- 
setParentDescription copied from interface:DocuDirentSets the parent Directory.- Specified by:
- setParentin interface- DocuDirent
- Parameters:
- parent- The parent to set
 
- 
getFileClass- Returns:
- the FileClass
 
- 
compareToDescription copied from interface:DocuDirentComparator using the file name. Compares to a String (for binarySearch) or to another DocuDirent (for sort).- Specified by:
- compareToin interface- Comparable<Object>
- Specified by:
- compareToin interface- DocuDirent
- Parameters:
- arg0- the other Object
- See Also:
 
 
-