org.apache.xmlrpc.parser
Class ExtParser

java.lang.Object
  extended by 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
ExtParser()
           
 
Method Summary
 void characters(char[] pChars, int pOffset, int pLength)
           
 void endDocument()
           
 void endElement(String pURI, String pLocalName, String pQName)
           
 void endPrefixMapping(String pPrefix)
           
protected abstract  ContentHandler getExtHandler()
          Returns a content handler for parsing the actual contents.
protected abstract  String getTagName()
          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 startDocument()
           
 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.apache.xmlrpc.parser.TypeParser
getResult
 

Constructor Detail

ExtParser

public ExtParser()
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:
endDocument in interface ContentHandler
Throws:
SAXException

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Throws:
SAXException

characters

public void characters(char[] pChars,
                       int pOffset,
                       int pLength)
                throws SAXException
Specified by:
characters in interface ContentHandler
Throws:
SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] pChars,
                                int pOffset,
                                int pLength)
                         throws SAXException
Specified by:
ignorableWhitespace in interface ContentHandler
Throws:
SAXException

endPrefixMapping

public void endPrefixMapping(String pPrefix)
                      throws SAXException
Specified by:
endPrefixMapping in interface ContentHandler
Throws:
SAXException

skippedEntity

public void skippedEntity(String pName)
                   throws SAXException
Specified by:
skippedEntity in interface ContentHandler
Throws:
SAXException

setDocumentLocator

public void setDocumentLocator(Locator pLocator)
Specified by:
setDocumentLocator in interface ContentHandler

processingInstruction

public void processingInstruction(String pTarget,
                                  String pData)
                           throws SAXException
Specified by:
processingInstruction in interface ContentHandler
Throws:
SAXException

startPrefixMapping

public void startPrefixMapping(String pPrefix,
                               String pURI)
                        throws SAXException
Specified by:
startPrefixMapping in interface ContentHandler
Throws:
SAXException

startElement

public void startElement(String pURI,
                         String pLocalName,
                         String pQName,
                         Attributes pAttrs)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Throws:
SAXException

endElement

public void endElement(String pURI,
                       String pLocalName,
                       String pQName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Throws:
SAXException


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.