changeset 188:dde98eaf97ff

Servlet version 1.18b3 new Raster servlet - new Raster servlet for rastering SVG graphics into PNG - new SVGFile class and accompanying changes - fixes in DocuDirectory for better handling of other file classes
author robcast
date Fri, 28 Nov 2003 13:19:37 +0100
parents b3f9a7f646c5
children 7bb273c51e88
files servlet/src/digilib/io/SVGFile.java
diffstat 1 files changed, 60 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/servlet/src/digilib/io/SVGFile.java	Fri Nov 28 13:19:37 2003 +0100
@@ -0,0 +1,60 @@
+/* SVGFile -- Class for SVG files
+
+  Digital Image Library servlet components
+
+  Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
+
+  This program is free software; you can redistribute  it and/or modify it
+  under  the terms of  the GNU General  Public License as published by the
+  Free Software Foundation;  either version 2 of the  License, or (at your
+  option) any later version.
+   
+  Please read license.txt for the full details. A copy of the GPL
+  may be found at http://www.gnu.org/copyleft/lgpl.html
+
+  You should have received a copy of the GNU General Public License
+  along with this program; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+ * Created on 25.11.2003 by casties
+ *
+ */
+package digilib.io;
+
+import java.io.File;
+
+/** Class for SVG files.
+ * 
+ * @author casties
+ *
+ */
+public class SVGFile extends DocuDirent {
+	/** this is a text file */
+	protected static int fileClass = FileOps.CLASS_SVG;
+	/** our File instance */
+	protected File file = null;
+	
+	/** Constructor taking a file.
+	 * 
+	 * @param f
+	 */
+	public SVGFile(File f) {
+		this.file = f;
+	}
+
+	/* (non-Javadoc)
+	 * @see digilib.io.DocuDirent#checkMeta()
+	 */
+	public void checkMeta() {
+		// Auto-generated method stub
+
+	}
+
+	/* (non-Javadoc)
+	 * @see digilib.io.DocuDirent#getFile()
+	 */
+	public File getFile() {
+		return file;
+	}
+
+}