| java.lang.Object org.xml.sax.helpers.DefaultHandler javanet.staxutils.StAXContentHandler
All known Subclasses: javanet.staxutils.StAXStreamContentHandler, javanet.staxutils.StAXEventContentHandler,
StAXContentHandler | abstract public class StAXContentHandler extends DefaultHandler implements LexicalHandler(Code) | | Base class for SAX-to-STAX bridge classes that provides common
functionality.
author: Christian Niles version: $Revision: 1.3 $ |
Method Summary | |
public void | characters(char[] ch, int start, int length) | public void | comment(char[] ch, int start, int length) | public void | endCDATA() | public void | endDTD() | public void | endDocument() | public void | endElement(String uri, String localName, String qName) | public void | endEntity(String name) | public void | endPrefixMapping(String prefix) | public void | error(SAXParseException e) | public void | fatalError(SAXParseException e) | public Location | getCurrentLocation() Calculates the STAX
Location from the SAX
Locator registered with this handler. | final public static void | parseQName(String qName, String[] results) Parses an XML qualified name, and places the resulting prefix and local
name in the provided String array.
Parameters: qName - The qualified name to parse. Parameters: results - An array where parse results will be placed. | protected void | reportException(String type, SAXException e) Used to report a
SAXException to the
XMLReporter registered with this handler. | public void | setDocumentLocator(Locator locator) | public void | setXMLReporter(XMLReporter reporter) Sets the
XMLReporter to which warning and error messages will be
sent. | public void | startCDATA() | public void | startDTD(String name, String publicId, String systemId) | public void | startDocument() | public void | startElement(String uri, String localName, String qName, Attributes attributes) | public void | startEntity(String name) | public void | startPrefixMapping(String prefix, String uri) | public void | warning(SAXParseException e) |
CDATABuffer | protected StringBuffer CDATABuffer(Code) | | Buffer containing text read within the current CDATA section.
|
isCDATA | protected boolean isCDATA(Code) | | Whether the parser is currently within a CDATA section.
|
StAXContentHandler | public StAXContentHandler()(Code) | | |
characters | public void characters(char[] ch, int start, int length) throws SAXException(Code) | | |
getCurrentLocation | public Location getCurrentLocation()(Code) | | Calculates the STAX
Location from the SAX
Locator registered with this handler. If no
Locator was provided, then
this method will return null .
|
parseQName | final public static void parseQName(String qName, String[] results)(Code) | | Parses an XML qualified name, and places the resulting prefix and local
name in the provided String array.
Parameters: qName - The qualified name to parse. Parameters: results - An array where parse results will be placed. The prefixwill be placed at results[0] , and the localpart at results[1] |
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | |
setXMLReporter | public void setXMLReporter(XMLReporter reporter)(Code) | | Sets the
XMLReporter to which warning and error messages will be
sent.
Parameters: reporter - The XMLReporterto notify of errors. |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|