Package org.apache.xmlrpc.parser
Class ExtParser
java.lang.Object
org.apache.xmlrpc.parser.ExtParser
- All Implemented Interfaces:
TypeParser
,ContentHandler
- Direct Known Subclasses:
JaxbParser
,NodeParser
Base class for parsing external XML representations, like DOM,
or JAXB.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] pChars, int pOffset, int pLength) void
void
endElement
(String pURI, String pLocalName, String pQName) void
endPrefixMapping
(String pPrefix) protected abstract ContentHandler
Returns a content handler for parsing the actual contents.protected abstract String
Returns the outer node name.void
ignorableWhitespace
(char[] pChars, int pOffset, int pLength) void
processingInstruction
(String pTarget, String pData) void
setDocumentLocator
(Locator pLocator) void
skippedEntity
(String pName) void
void
startElement
(String pURI, String pLocalName, String pQName, Attributes pAttrs) void
startPrefixMapping
(String pPrefix, String pURI) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
Methods inherited from interface org.apache.xmlrpc.parser.TypeParser
getResult
-
Field Details
-
locator
-
handler
-
level
private int level -
prefixes
-
-
Constructor Details
-
ExtParser
public ExtParser()
-
-
Method Details
-
getExtHandler
Returns a content handler for parsing the actual contents.- Returns:
- A SAX handler for parsing the XML inside the outer ex:foo element.
- Throws:
SAXException
- Creating the handler failed.
-
getTagName
Returns the outer node name. -
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
startElement
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-