Mercurial > hg > digilib-old
diff servlet/src/main/java/digilib/io/TextFile.java @ 892:ba1eb2d821a2 mvnify
rearrange sources to maven directory standard
author | robcast |
---|---|
date | Tue, 19 Apr 2011 18:44:25 +0200 |
parents | servlet/src/digilib/io/TextFile.java@c7034d166a24 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/servlet/src/main/java/digilib/io/TextFile.java Tue Apr 19 18:44:25 2011 +0200 @@ -0,0 +1,62 @@ +/* TextFile.java -- Class for text files + + Digital Image Library servlet components + + Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de) + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + Please read license.txt for the full details. A copy of the GPL + may be found at http://www.gnu.org/copyleft/lgpl.html + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + * Created on 15.09.2003 by casties + * + */ +package digilib.io; + +import java.io.File; + +import digilib.io.FileOps.FileClass; + +/** Class for text files. + * + * @author casties + * + */ +public class TextFile extends DocuDirentImpl { + /** this is a text file */ + protected static FileClass fileClass = FileClass.TEXT; + /** our File instance */ + protected File file = null; + + /** Constructor taking a file. + * + * @param f + */ + public TextFile(File f) { + this.file = f; + } + + /* (non-Javadoc) + * @see digilib.io.DocuDirent#checkMeta() + */ + public void checkMeta() { + // TODO Auto-generated method stub + + } + + /* (non-Javadoc) + * @see digilib.io.DocuDirent#getFile() + */ + public File getFile() { + return file; + } + +}