comparison servlet/src/digilib/io/Directory.java @ 149:04ad64b2137a

Servlet version 1.14b1 - better performance with thumbnails (really, this time :-) - new DocuInfo class - new Directory class - DocuFile uses String and Directory as data members - parameter rearrangements
author robcast
date Tue, 26 Aug 2003 22:28:43 +0200
parents
children bc8df0133c04
comparison
equal deleted inserted replaced
148:837a633a0407 149:04ad64b2137a
1 /* Directory --
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 26.08.2003
20 *
21 */
22 package digilib.io;
23
24 import java.io.File;
25
26 /** Class for filesystem directories
27 * @author casties
28 *
29 */
30 public class Directory {
31 // File object pointing to the directory
32 File dir = null;
33
34 /** Default constructor.
35 *
36 */
37 public Directory() {
38 super();
39 }
40
41 /** Constructor taking a File object.
42 *
43 * @param d
44 */
45 public Directory(File d) {
46 dir = d;
47 }
48
49 /** Constructor taking a directory name.
50 *
51 * @param d
52 */
53 public Directory(String dn) {
54 dir = new File(dn);
55 }
56
57 /**
58 * @return
59 */
60 public File getDir() {
61 return dir;
62 }
63
64 /**
65 * @param dir
66 */
67 public void setDir(File dir) {
68 this.dir = dir;
69 }
70
71 }