Mercurial > hg > digilib-old
annotate common/src/main/java/digilib/io/TextFile.java @ 957:c4bd6f984aee
don't set position of scaler div, just size.
| author | robcast |
|---|---|
| date | Fri, 13 Jan 2012 14:07:57 +0100 |
| parents | 7779b37d1d05 |
| children |
| rev | line source |
|---|---|
| 160 | 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 | |
| 563 | 26 import digilib.io.FileOps.FileClass; |
| 27 | |
| 160 | 28 /** Class for text files. |
| 29 * | |
| 30 * @author casties | |
| 31 * | |
| 32 */ | |
|
576
dad720e9b12b
try: DocuDirent as interface, ImageFile inherits from ImageInput and implements DocuDirent
robcast
parents:
574
diff
changeset
|
33 public class TextFile extends DocuDirentImpl { |
| 160 | 34 /** this is a text file */ |
| 563 | 35 protected static FileClass fileClass = FileClass.TEXT; |
| 160 | 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 */ | |
| 582 | 58 public File getFile() { |
| 160 | 59 return file; |
| 60 } | |
| 61 | |
| 62 } |
