comparison servlet/src/digilib/image/ImageLoaderDocuImage.java @ 574:790cbfb58b52 stream

ripping apart ImageFileSet
author robcast
date Wed, 22 Dec 2010 18:32:06 +0100
parents beeedf90cb81
children efd7a223f819 720d061a1b30
comparison
equal deleted inserted replaced
573:beeedf90cb81 574:790cbfb58b52
48 import javax.servlet.ServletException; 48 import javax.servlet.ServletException;
49 49
50 import digilib.io.FileOpException; 50 import digilib.io.FileOpException;
51 import digilib.io.FileOps; 51 import digilib.io.FileOps;
52 import digilib.io.ImageFile; 52 import digilib.io.ImageFile;
53 import digilib.io.ImageFileset; 53 import digilib.io.ImageSet;
54 import digilib.io.ImageInput; 54 import digilib.io.ImageInput;
55 55
56 /** Implementation of DocuImage using the ImageLoader API of Java 1.4 and Java2D. */ 56 /** Implementation of DocuImage using the ImageLoader API of Java 1.4 and Java2D. */
57 public class ImageLoaderDocuImage extends ImageInfoDocuImage { 57 public class ImageLoaderDocuImage extends ImageInfoDocuImage {
58 58
125 ImageInput imf = super.identify(imageFile); 125 ImageInput imf = super.identify(imageFile);
126 if (imf != null) { 126 if (imf != null) {
127 return imf; 127 return imf;
128 } 128 }
129 // fileset to store the information 129 // fileset to store the information
130 ImageFileset imgfs = imageFile.getParent(); 130 ImageSet imgfs = imageFile.getParent();
131 File f = imageFile.getFile(); 131 File f = imageFile.getFile();
132 if (f == null) { 132 if (f == null) {
133 throw new IOException("File not found!"); 133 throw new IOException("File not found!");
134 } 134 }
135 logger.debug("identifying (ImageIO) " + f); 135 logger.debug("identifying (ImageIO) " + f);