Mercurial > hg > digilib-old
changeset 273:d4c0c4d858a9
Servlet version 1.21b3
- searching in directories got faster (real binarySearch now!)
- cached file lists get disposed
- some code cleaning (Map types instead of HashMap)
author | robcast |
---|---|
date | Tue, 12 Oct 2004 16:06:43 +0200 |
parents | 084ef7fbe420 |
children | 4c068f899c1e |
files | servlet/src/digilib/io/XMLMetaLoader.java |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/servlet/src/digilib/io/XMLMetaLoader.java Tue Oct 12 16:06:43 2004 +0200 +++ b/servlet/src/digilib/io/XMLMetaLoader.java Tue Oct 12 16:06:43 2004 +0200 @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.HashMap; import java.util.LinkedList; +import java.util.Map; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; @@ -53,8 +54,8 @@ private class XMLMetaParser extends DefaultHandler { private LinkedList tags; - private HashMap files; - private HashMap meta; + private Map files; + private Map meta; private StringBuffer content; private boolean collecting; private StringBuffer collectedContent; @@ -260,7 +261,7 @@ * load and parse a file (as URL) * returns HashMap with list data */ - public HashMap loadURL(String path) throws SAXException, IOException { + public Map loadURL(String path) throws SAXException, IOException { logger.debug("loading meta: "+path); // Create a JAXP SAXParserFactory and configure it SAXParserFactory spf = SAXParserFactory.newInstance();