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 voidcharacters(char[] pChars, int pOffset, int pLength)voidendDocument()voidendPrefixMapping(String pPrefix)LocatorgetDocumentLocator()Returns the document locator.ObjectgetResult()Returns the parsed object.voidignorableWhitespace(char[] pChars, int pOffset, int pLength)protected static booleanisEmpty(char[] pChars, int pStart, int pLength)voidprocessingInstruction(String pTarget, String pData)PI's are by default ignored.voidsetDocumentLocator(Locator pLocator)voidsetResult(Object pResult)Sets the result object.voidskippedEntity(String pName)Skipped entities raise an exception by default.voidstartDocument()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.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:TypeParserReturns the parsed object.- Specified by:
getResultin 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:
setDocumentLocatorin interfaceContentHandler
-
processingInstruction
public void processingInstruction(String pTarget, String pData) throws SAXException
PI's are by default ignored.- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String pName) throws SAXException
Skipped entities raise an exception by default.- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String pPrefix, String pURI) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String pPrefix) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin 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:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
-