Mercurial > hg > digilib-old
comparison servlet/src/digilib/io/DocuDirCache.java @ 187:b3f9a7f646c5
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 | afe7ff98bb71 |
children | bb4ed821d06e |
comparison
equal
deleted
inserted
replaced
186:26b2a74e2fe5 | 187:b3f9a7f646c5 |
---|---|
147 } | 147 } |
148 return l; | 148 return l; |
149 } | 149 } |
150 | 150 |
151 /** | 151 /** |
152 * Returns the ImageFileset with the pathname <code>fn</code> and the | 152 * Returns the DocuDirent with the pathname <code>fn</code> and the |
153 * index <code>in</code> and the class <code>fc</code>. | 153 * index <code>in</code> and the class <code>fc</code>. |
154 * | 154 * |
155 * If <code>fn</code> is a file then the corresponding Fileset is | 155 * If <code>fn</code> is a file then the corresponding DocuDirent is |
156 * returned and the index is ignored. | 156 * returned and the index is ignored. |
157 * | 157 * |
158 * @param fn | 158 * @param fn |
159 * digilib pathname | 159 * digilib pathname |
160 * @param in | 160 * @param in |
212 } | 212 } |
213 dd.refresh(); | 213 dd.refresh(); |
214 if (dd.isValid()) { | 214 if (dd.isValid()) { |
215 try { | 215 try { |
216 return dd.get(n, fc); | 216 return dd.get(n, fc); |
217 } catch (ArrayIndexOutOfBoundsException e) { | 217 } catch (IndexOutOfBoundsException e) { |
218 } | 218 } |
219 } | 219 } |
220 return null; | 220 return null; |
221 } | 221 } |
222 | 222 |