diff servlet/src/digilib/image/DocuImageImpl.java @ 122:a32e8c80e2f2

Servlet Version 1.10b1 - more intelligent handling of resolutions - different handling of mo=lores
author robcast
date Wed, 11 Jun 2003 22:51:28 +0200
parents 997ba69afb81
children 04ad64b2137a
line wrap: on
line diff
--- a/servlet/src/digilib/image/DocuImageImpl.java	Wed Jun 11 22:50:13 2003 +0200
+++ b/servlet/src/digilib/image/DocuImageImpl.java	Wed Jun 11 22:51:28 2003 +0200
@@ -20,15 +20,11 @@
 
 package digilib.image;
 
-import java.awt.Dimension;
 import java.awt.Rectangle;
 import java.io.File;
-import java.io.IOException;
 
 import digilib.Utils;
-import digilib.io.DocuFile;
 import digilib.io.FileOpException;
-import digilib.io.FileOps;
 
 /** Simple abstract implementation of the <code>DocuImage</code> interface.
  *
@@ -123,19 +119,6 @@
 		scale(scale);
 	}
 	
-	/* this is a rather stupid implementation, eventually loading the whole file. */
-	public boolean checkFile(DocuFile f) throws IOException {
-		loadImage(f.getFile());
-		int w = getWidth();
-		int h = getHeight();
-		Dimension s = new Dimension(w, h);
-		f.setSize(s);
-		String m = FileOps.mimeForFile(f.getFile());
-		mimeType = m;
-		f.setMimetype(m);
-		return true;
-	}
-
 	public String getMimetype() {
 		return mimeType;
 	}