annotate servlet/src/digilib/io/SVGFile.java @ 339:6d2032b6121d gen2_1

new directory and cache work
author robcast
date Wed, 17 Nov 2004 18:17:34 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
339
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
1 /* SVGFile -- Class for SVG files
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
2
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
3 Digital Image Library servlet components
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
4
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
5 Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
6
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
7 This program is free software; you can redistribute it and/or modify it
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
9 Free Software Foundation; either version 2 of the License, or (at your
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
10 option) any later version.
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
11
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
12 Please read license.txt for the full details. A copy of the GPL
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
13 may be found at http://www.gnu.org/copyleft/lgpl.html
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
14
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
16 along with this program; if not, write to the Free Software
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
18
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
19 * Created on 25.11.2003 by casties
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
20 *
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
21 */
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
22 package digilib.io;
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
23
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
24 import java.io.File;
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
25
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
26
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
27 /** Class for SVG files.
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
28 *
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
29 * @author casties
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
30 *
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
31 */
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
32 public class SVGFile extends DigiDirent {
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
33 /** this is a SVG file */
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
34 protected static final int FILE_CLASS = FileOps.CLASS_SVG;
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
35
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
36 protected File file;
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
37
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
38 /**
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
39 * @param name
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
40 * @param parent
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
41 * @param file
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
42 */
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
43 public SVGFile(File file, DigiDirectory parent) {
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
44 super(file.getName(), parent);
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
45 this.file = file;
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
46 }
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
47
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
48 /**
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
49 * @param name
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
50 * @param parent
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
51 */
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
52 public SVGFile(String name, File file, DigiDirectory parent) {
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
53 super(name, parent);
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
54 this.file = file;
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
55 }
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
56
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
57 /**
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
58 * @return Returns the file.
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
59 */
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
60 public File getFile() {
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
61 return file;
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
62 }
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
63
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
64 /**
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
65 * @param file The file to set.
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
66 */
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
67 public void setFile(File file) {
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
68 this.file = file;
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
69 }
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
70
6d2032b6121d new directory and cache work
robcast
parents:
diff changeset
71 }