comparison servlet/src/digilib/io/XMLListLoader.java @ 140:c878ea574c29

Servlet Version 1.12b2 - fixed small error in XML config parser - improved high quality scaling with minSubsample parameter
author robcast
date Fri, 15 Aug 2003 23:52:20 +0200
parents d18b0ff52b07
children 67ff8c7fecb9
comparison
equal deleted inserted replaced
139:11cfe4c89fdc 140:c878ea574c29
30 import javax.xml.parsers.SAXParserFactory; 30 import javax.xml.parsers.SAXParserFactory;
31 31
32 import org.xml.sax.Attributes; 32 import org.xml.sax.Attributes;
33 import org.xml.sax.SAXException; 33 import org.xml.sax.SAXException;
34 import org.xml.sax.SAXParseException; 34 import org.xml.sax.SAXParseException;
35 import org.xml.sax.XMLReader; 35 import org.xml.sax.helpers.DefaultHandler;
36 import org.xml.sax.helpers.XMLFilterImpl;
37 36
38 public class XMLListLoader { 37 public class XMLListLoader {
39 38
40 private String listTag = "list"; 39 private String listTag = "list";
41 private String entryTag = "entry"; 40 private String entryTag = "entry";
58 } 57 }
59 58
60 /** 59 /**
61 * inner class XMLListParser to be called by the parser 60 * inner class XMLListParser to be called by the parser
62 */ 61 */
63 private class XMLListParser extends XMLFilterImpl { 62 private class XMLListParser extends DefaultHandler {
64 63
65 private HashMap listData; 64 private HashMap listData;
66 private LinkedList tagSpace; 65 private LinkedList tagSpace;
67 66
68 public HashMap getData() { 67 public HashMap getData() {