Package org.apache.xmlrpc.parser
Class TypeParserImpl
- java.lang.Object
-
- org.apache.xmlrpc.parser.TypeParserImpl
-
- All Implemented Interfaces:
TypeParser
,ContentHandler
- Direct Known Subclasses:
AtomicParser
,ByteArrayParser
,RecursiveTypeParserImpl
public abstract class TypeParserImpl extends Object implements TypeParser
Abstract base implementation of aTypeParser
, for derivation of subclasses.
-
-
Constructor Summary
Constructors Constructor Description TypeParserImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] pChars, int pOffset, int pLength)
void
endDocument()
void
endPrefixMapping(String pPrefix)
Locator
getDocumentLocator()
Returns the document locator.Object
getResult()
Returns the parsed object.void
ignorableWhitespace(char[] pChars, int pOffset, int pLength)
protected static boolean
isEmpty(char[] pChars, int pStart, int pLength)
void
processingInstruction(String pTarget, String pData)
PI's are by default ignored.void
setDocumentLocator(Locator pLocator)
void
setResult(Object pResult)
Sets the result object.void
skippedEntity(String pName)
Skipped entities raise an exception by default.void
startDocument()
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
endElement, startElement
-
-
-
-
Method Detail
-
setResult
public void setResult(Object pResult)
Sets the result object.- Parameters:
pResult
- The result object.
-
getResult
public Object getResult() throws XmlRpcException
Description copied from interface:TypeParser
Returns the parsed object.- Specified by:
getResult
in interfaceTypeParser
- Returns:
- The parameter or result object.
- Throws:
XmlRpcException
- Creating the result object failed.
-
getDocumentLocator
public Locator getDocumentLocator()
Returns the document locator.- Returns:
- Locator object describing the current location within the document.
-
setDocumentLocator
public void setDocumentLocator(Locator pLocator)
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
processingInstruction
public void processingInstruction(String pTarget, String pData) throws SAXException
PI's are by default ignored.- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String pName) throws SAXException
Skipped entities raise an exception by default.- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String pPrefix, String pURI) throws SAXException
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String pPrefix) throws SAXException
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXException
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
isEmpty
protected static boolean isEmpty(char[] pChars, int pStart, int pLength)
-
characters
public void characters(char[] pChars, int pOffset, int pLength) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
-