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 TypeMethodDescriptionvoidcharacters(char[] pChars, int pOffset, int pLength) voidvoidendElement(String pURI, String pLocalName, String pQName) voidendPrefixMapping(String pPrefix) protected abstract ContentHandlerReturns a content handler for parsing the actual contents.protected abstract StringReturns the outer node name.voidignorableWhitespace(char[] pChars, int pOffset, int pLength) voidprocessingInstruction(String pTarget, String pData) voidsetDocumentLocator(Locator pLocator) voidskippedEntity(String pName) voidvoidstartElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) voidstartPrefixMapping(String pPrefix, String pURI) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-