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
public abstract class ExtParser extends Object implements TypeParser
Base class for parsing external XML representations, like DOM, or JAXB.
-
-
Constructor Summary
Constructors Constructor Description ExtParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] pChars, int pOffset, int pLength)voidendDocument()voidendElement(String pURI, String pLocalName, String pQName)voidendPrefixMapping(String pPrefix)protected abstract ContentHandlergetExtHandler()Returns a content handler for parsing the actual contents.protected abstract StringgetTagName()Returns the outer node name.voidignorableWhitespace(char[] pChars, int pOffset, int pLength)voidprocessingInstruction(String pTarget, String pData)voidsetDocumentLocator(Locator pLocator)voidskippedEntity(String pName)voidstartDocument()voidstartElement(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, wait
-
Methods inherited from interface org.apache.xmlrpc.parser.TypeParser
getResult
-
-
-
-
Method Detail
-
getExtHandler
protected abstract ContentHandler getExtHandler() throws SAXException
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
protected abstract String getTagName()
Returns the outer node name.
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
characters
public void characters(char[] pChars, int pOffset, int pLength) throws SAXException- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String pPrefix) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String pName) throws SAXException
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator pLocator)
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
processingInstruction
public void processingInstruction(String pTarget, String pData) throws SAXException
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String pPrefix, String pURI) throws SAXException
- 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
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
-