Mercurial > hg > digilib-old
comparison common/src/main/java/digilib/io/TextFile.java @ 903:7779b37d1d05
refactored into maven modules per servlet type.
can build servlet-api 2.3 and 3.0 via profile now!
| author | robcast |
|---|---|
| date | Tue, 26 Apr 2011 20:24:31 +0200 |
| parents | servlet/src/main/java/digilib/io/TextFile.java@ba1eb2d821a2 |
| children |
comparison
equal
deleted
inserted
replaced
| 902:89ba3ffcf552 | 903:7779b37d1d05 |
|---|---|
| 1 /* TextFile.java -- Class for text files | |
| 2 | |
| 3 Digital Image Library servlet components | |
| 4 | |
| 5 Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de) | |
| 6 | |
| 7 This program is free software; you can redistribute it and/or modify it | |
| 8 under the terms of the GNU General Public License as published by the | |
| 9 Free Software Foundation; either version 2 of the License, or (at your | |
| 10 option) any later version. | |
| 11 | |
| 12 Please read license.txt for the full details. A copy of the GPL | |
| 13 may be found at http://www.gnu.org/copyleft/lgpl.html | |
| 14 | |
| 15 You should have received a copy of the GNU General Public License | |
| 16 along with this program; if not, write to the Free Software | |
| 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 18 | |
| 19 * Created on 15.09.2003 by casties | |
| 20 * | |
| 21 */ | |
| 22 package digilib.io; | |
| 23 | |
| 24 import java.io.File; | |
| 25 | |
| 26 import digilib.io.FileOps.FileClass; | |
| 27 | |
| 28 /** Class for text files. | |
| 29 * | |
| 30 * @author casties | |
| 31 * | |
| 32 */ | |
| 33 public class TextFile extends DocuDirentImpl { | |
| 34 /** this is a text file */ | |
| 35 protected static FileClass fileClass = FileClass.TEXT; | |
| 36 /** our File instance */ | |
| 37 protected File file = null; | |
| 38 | |
| 39 /** Constructor taking a file. | |
| 40 * | |
| 41 * @param f | |
| 42 */ | |
| 43 public TextFile(File f) { | |
| 44 this.file = f; | |
| 45 } | |
| 46 | |
| 47 /* (non-Javadoc) | |
| 48 * @see digilib.io.DocuDirent#checkMeta() | |
| 49 */ | |
| 50 public void checkMeta() { | |
| 51 // TODO Auto-generated method stub | |
| 52 | |
| 53 } | |
| 54 | |
| 55 /* (non-Javadoc) | |
| 56 * @see digilib.io.DocuDirent#getFile() | |
| 57 */ | |
| 58 public File getFile() { | |
| 59 return file; | |
| 60 } | |
| 61 | |
| 62 } |
