public class RuntimeXML
extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
java.util.HashMap<java.lang.String,java.lang.String> |
productDetailMap |
java.util.HashMap<java.lang.String,java.util.HashMap> |
productsMap |
Constructor and Description |
---|
RuntimeXML() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] text,
int start,
int length)
returns the value
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qname)
end of parsing
|
static java.util.HashMap<java.lang.String,java.util.HashMap> |
readXML(java.io.InputStream is)
method uses SAXParser to parse xml file to get the version
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qname,
org.xml.sax.Attributes attributes)
Starts the parsing
|
public java.util.HashMap<java.lang.String,java.util.HashMap> productsMap
public java.util.HashMap<java.lang.String,java.lang.String> productDetailMap
public static java.util.HashMap<java.lang.String,java.util.HashMap> readXML(java.io.InputStream is) throws java.lang.Exception
java.lang.Exception
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qname, org.xml.sax.Attributes attributes)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] text, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qname)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler