changeset 272:084ef7fbe420

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 d3abaf38fb5f
children d4c0c4d858a9
files servlet/src/digilib/io/XMLListLoader.java
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/servlet/src/digilib/io/XMLListLoader.java	Tue Oct 12 16:06:43 2004 +0200
+++ b/servlet/src/digilib/io/XMLListLoader.java	Tue Oct 12 16:06:43 2004 +0200
@@ -24,6 +24,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;
@@ -74,10 +75,10 @@
 	 */
 	private class XMLListParser extends DefaultHandler {
 
-		private HashMap listData;
+		private Map listData;
 		private LinkedList tagSpace;
 
-		public HashMap getData() {
+		public Map getData() {
 			return listData;
 		}
 
@@ -150,7 +151,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 {
 		//System.out.println("loadurl ("+path+")");
 		// Create a JAXP SAXParserFactory and configure it
 		SAXParserFactory spf = SAXParserFactory.newInstance();