comparison servlet/src/digilib/io/ImageFile.java @ 574:790cbfb58b52 stream

ripping apart ImageFileSet
author robcast
date Wed, 22 Dec 2010 18:32:06 +0100
parents 34701340922e
children dad720e9b12b efd7a223f819
comparison
equal deleted inserted replaced
573:beeedf90cb81 574:790cbfb58b52
20 */ 20 */
21 21
22 package digilib.io; 22 package digilib.io;
23 23
24 import java.io.File; 24 import java.io.File;
25 import java.io.InputStream;
26 25
27 import digilib.image.ImageSize; 26 import digilib.image.ImageSize;
28 27
29 /** 28 /**
30 * @author casties 29 * @author casties
31 */ 30 */
32 public class ImageFile extends ImageInput { 31 public class ImageFile extends ImageInput {
33 32
34 // file name 33 // file name
35 private String filename = null; 34 private String filename = null;
36 // parent ImageFileset 35 // parent ImageSet
37 private ImageFileset parent = null; 36 private ImageSet parent = null;
38 // parent directory 37 // parent directory
39 private Directory dir = null; 38 private Directory dir = null;
40 39
41 public ImageFile(String fn, ImageFileset parent, Directory dir) { 40 public ImageFile(String fn, ImageSet parent, Directory dir) {
42 this.filename = fn; 41 this.filename = fn;
43 this.parent = parent; 42 this.parent = parent;
44 this.dir = dir; 43 this.dir = dir;
45 } 44 }
46 45
77 File f = new File(dir.getDir(), filename); 76 File f = new File(dir.getDir(), filename);
78 return f; 77 return f;
79 } 78 }
80 79
81 /** 80 /**
82 * @return ImageFileset 81 * @return ImageSet
83 */ 82 */
84 public ImageFileset getParent() { 83 public ImageSet getParent() {
85 return parent; 84 return parent;
86 } 85 }
87 86
88 /** 87 /**
89 * Sets the parent. 88 * Sets the parent.
90 * @param parent The parent to set 89 * @param parent The parent to set
91 */ 90 */
92 public void setParent(ImageFileset parent) { 91 public void setParent(ImageSet parent) {
93 this.parent = parent; 92 this.parent = parent;
94 } 93 }
95 94
96 /* (non-Javadoc) 95 /* (non-Javadoc)
97 * @see digilib.io.ImageInput#setSize(digilib.image.ImageSize) 96 * @see digilib.io.ImageInput#setSize(digilib.image.ImageSize)