Mercurial > hg > digilib-old
comparison servlet/src/digilib/io/TextFile.java @ 160:aecb57fb8f96
servlet version 1.16a4
- rather experimental
- new Texter servlet for sending text
- reads and caches text files in DocuDirCache
- DocuFile renamed to ImageFile (-Set)
- new TextFile
author | robcast |
---|---|
date | Tue, 16 Sep 2003 18:32:00 +0200 |
parents | |
children | 686086d6e6d6 |
comparison
equal
deleted
inserted
replaced
159:e743b853efca | 160:aecb57fb8f96 |
---|---|
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 /** Class for text files. | |
27 * | |
28 * @author casties | |
29 * | |
30 */ | |
31 public class TextFile extends DocuDirent { | |
32 /** this is a text file */ | |
33 protected static int fileClass = FileOps.CLASS_TEXT; | |
34 /** our File instance */ | |
35 protected File file = null; | |
36 | |
37 /** Constructor taking a file. | |
38 * | |
39 * @param f | |
40 */ | |
41 public TextFile(File f) { | |
42 this.file = f; | |
43 } | |
44 | |
45 /* (non-Javadoc) | |
46 * @see digilib.io.DocuDirent#checkMeta() | |
47 */ | |
48 public void checkMeta() { | |
49 // TODO Auto-generated method stub | |
50 | |
51 } | |
52 | |
53 /* (non-Javadoc) | |
54 * @see digilib.io.DocuDirent#getFile() | |
55 */ | |
56 public File getFile() { | |
57 return file; | |
58 } | |
59 | |
60 } |