Mercurial > hg > digilib-old
comparison servlet/src/digilib/image/DocuImage.java @ 159:e743b853efca
servlet version 1.16a4
- rather experimental
- new Texter servlet for sending text
- reads and caches text files in DocuDirCache
- DocuFile renamed to ImageFile (-Set)
- new TextFile
author | robcast |
---|---|
date | Tue, 16 Sep 2003 18:32:00 +0200 |
parents | 04ad64b2137a |
children | 1a65d8e43620 |
comparison
equal
deleted
inserted
replaced
158:e9a81ac446cb | 159:e743b853efca |
---|---|
21 package digilib.image; | 21 package digilib.image; |
22 | 22 |
23 import java.awt.Rectangle; | 23 import java.awt.Rectangle; |
24 import java.io.OutputStream; | 24 import java.io.OutputStream; |
25 | 25 |
26 import digilib.io.DocuFile; | 26 import digilib.io.ImageFile; |
27 import digilib.io.FileOpException; | 27 import digilib.io.FileOpException; |
28 | 28 |
29 /** The basic class for the representation of a digilib image. | 29 /** The basic class for the representation of a digilib image. |
30 * | 30 * |
31 * The actual image object is hidden in the class, only methods for loading, | 31 * The actual image object is hidden in the class, only methods for loading, |
44 /** Loads an image file into the Object. | 44 /** Loads an image file into the Object. |
45 * | 45 * |
46 * @param f Image File. | 46 * @param f Image File. |
47 * @throws FileOpException Exception thrown if any error occurs. | 47 * @throws FileOpException Exception thrown if any error occurs. |
48 */ | 48 */ |
49 public void loadImage(DocuFile f) throws FileOpException; | 49 public void loadImage(ImageFile f) throws FileOpException; |
50 | 50 |
51 /** This DocuImage support the loadSubImage operation. | 51 /** This DocuImage support the loadSubImage operation. |
52 * | 52 * |
53 * @return boolean | 53 * @return boolean |
54 */ | 54 */ |
59 * @param f | 59 * @param f |
60 * @param region | 60 * @param region |
61 * @param subsample | 61 * @param subsample |
62 * @throws FileOpException | 62 * @throws FileOpException |
63 */ | 63 */ |
64 public void loadSubimage(DocuFile f, Rectangle region, int subsample) | 64 public void loadSubimage(ImageFile f, Rectangle region, int subsample) |
65 throws FileOpException; | 65 throws FileOpException; |
66 | 66 |
67 /** Writes the current image to a ServletResponse. | 67 /** Writes the current image to a ServletResponse. |
68 * | 68 * |
69 * The image is encoded to the mime-type <code>mt</code> and sent to the output | 69 * The image is encoded to the mime-type <code>mt</code> and sent to the output |