public class GrXMLHandler
extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,JSGFRule> |
topRuleMap |
Constructor and Description |
---|
GrXMLHandler(java.net.URL baseURL,
java.util.Map<java.lang.String,JSGFRule> rules,
java.util.logging.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int offset,
int len) |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
protected final java.util.Map<java.lang.String,JSGFRule> topRuleMap
public GrXMLHandler(java.net.URL baseURL, java.util.Map<java.lang.String,JSGFRule> rules, java.util.logging.Logger logger)
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] buf, int offset, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXParseException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXParseException