Package digilib.io
Class TextFile
- java.lang.Object
-
- digilib.io.DocuDirentImpl
-
- digilib.io.TextFile
-
- All Implemented Interfaces:
DocuDirent
,Comparable<Object>
public class TextFile extends DocuDirentImpl
Class for text files.- Author:
- casties
-
-
Field Summary
Fields Modifier and Type Field Description protected File
file
our File instanceprotected static FileOps.FileClass
fileClass
this is a text file-
Fields inherited from class digilib.io.DocuDirentImpl
meta, parent
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkMeta()
Checks metadata and does something with it.File
getFile()
-
Methods inherited from class digilib.io.DocuDirentImpl
compareTo, getFileClass, getMeta, getName, getParent, readMeta, setMeta, setParent
-
-
-
-
Field Detail
-
fileClass
protected static FileOps.FileClass fileClass
this is a text file
-
file
protected File file
our File instance
-
-
Constructor Detail
-
TextFile
public TextFile(File f)
Constructor taking a file.- Parameters:
f
- the File
-
-
Method Detail
-
checkMeta
public void checkMeta()
Description copied from interface:DocuDirent
Checks metadata and does something with it.- Specified by:
checkMeta
in interfaceDocuDirent
- Specified by:
checkMeta
in classDocuDirentImpl
-
getFile
public File getFile()
- Specified by:
getFile
in classDocuDirentImpl
-
-