comparison servlet/src/digilib/io/DocuDirCache.java @ 209:f8c82fea551a

Servlet version 1.18b9 -- cleanup and bugfixes - fixed bug with slow color JPEGs - better pathname handling - better filehandle cleanup (hopefully)
author robcast
date Fri, 12 Mar 2004 19:52:07 +0100
parents bb4ed821d06e
children aaf6eace011d
comparison
equal deleted inserted replaced
208:460cd1f18b96 209:f8c82fea551a
132 * @return 132 * @return
133 */ 133 */
134 public List getChildren(String dirname, boolean recurse) { 134 public List getChildren(String dirname, boolean recurse) {
135 List l = new LinkedList(); 135 List l = new LinkedList();
136 for (Iterator i = map.keySet().iterator(); i.hasNext();) { 136 for (Iterator i = map.keySet().iterator(); i.hasNext();) {
137 DocuDirectory dd = (DocuDirectory) i.next(); 137 String n = (String) i.next();
138 DocuDirectory dd = (DocuDirectory) map.get(n);
138 if (recurse) { 139 if (recurse) {
139 if (dd.getDirName().startsWith(dirname)) { 140 if (dd.getDirName().startsWith(dirname)) {
140 l.add(dd); 141 l.add(dd);
141 } 142 }
142 } else { 143 } else {