Methods Summary |
---|
public void | characters(char[] ch, int start, int length)
if (isCDATA) {
CDATABuffer.append(ch, start, length);
}
|
public void | comment(char[] ch, int start, int length)
|
public void | endCDATA()
isCDATA = false;
CDATABuffer.setLength(0);
|
public void | endDTD()
|
public void | endDocument()
namespaces = null;
|
public void | endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
namespaces = null;
|
public void | endEntity(java.lang.String name)
|
public void | endPrefixMapping(java.lang.String prefix)
|
public void | error(org.xml.sax.SAXParseException e)
reportException("ERROR", e);
|
public void | fatalError(org.xml.sax.SAXParseException e)
reportException("FATAL", e);
|
public javax.xml.stream.Location | getCurrentLocation()
if (docLocator != null) {
return new SAXLocation(docLocator);
} else {
return null;
}
|
public static final void | parseQName(java.lang.String qName, java.lang.String[] results)Parses an XML qualified name, and places the resulting prefix and local
name in the provided String array.
String prefix, local;
int idx = qName.indexOf(':");
if (idx >= 0) {
prefix = qName.substring(0, idx);
local = qName.substring(idx + 1);
} else {
prefix = "";
local = qName;
}
results[0] = prefix;
results[1] = local;
|
protected void | reportException(java.lang.String type, org.xml.sax.SAXException e)Used to report a {@link SAXException}to the {@link XMLReporter}
registered with this handler.
if (reporter != null) {
try {
reporter.report(e.getMessage(), type, e, getCurrentLocation());
} catch (XMLStreamException e1) {
throw new SAXException(e1);
}
}
|
public void | setDocumentLocator(org.xml.sax.Locator locator)
this.docLocator = locator;
|
public void | setXMLReporter(javax.xml.stream.XMLReporter reporter)
this.reporter = reporter;
|
public void | startCDATA()
isCDATA = true;
if (CDATABuffer == null) {
CDATABuffer = new StringBuffer();
} else {
CDATABuffer.setLength(0);
}
|
public void | startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
|
public void | startDocument()
namespaces = new Vector(2);
|
public void | startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
namespaces = null;
|
public void | startEntity(java.lang.String name)
|
public void | startPrefixMapping(java.lang.String prefix, java.lang.String uri)
if (prefix == null) {
prefix = "";
} else if (prefix.equals("xml")) {
return;
}
if (namespaces == null) {
namespaces = new Vector(2);
}
namespaces.addElement(prefix);
namespaces.addElement(uri);
|
public void | warning(org.xml.sax.SAXParseException e)
reportException("WARNING", e);
|