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
Abstract base implementation of a
TypeParser,
for derivation of subclasses.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] pChars, int pOffset, int pLength) voidvoidendPrefixMapping(String pPrefix) Returns the document locator.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) voidSets the result object.voidskippedEntity(String pName) Skipped entities raise an exception by default.voidvoidstartPrefixMapping(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.xml.sax.ContentHandler
endElement, startElement
-
Field Details
-
result
-
locator
-
-
Constructor Details
-
TypeParserImpl
public TypeParserImpl()
-
-
Method Details
-
setResult
Sets the result object.- Parameters:
pResult- The result object.
-
getResult
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
Returns the document locator.- Returns:
- Locator object describing the current location within the document.
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
processingInstruction
PI's are by default ignored.- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
Skipped entities raise an exception by default.- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
isEmpty
protected static boolean isEmpty(char[] pChars, int pStart, int pLength) -
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-