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 TypeMethodDescriptionvoid
characters
(char[] pChars, int pOffset, int pLength) void
void
endPrefixMapping
(String pPrefix) Returns the document locator.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
Sets the result object.void
skippedEntity
(String pName) Skipped entities raise an exception by default.void
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
declaration, 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:TypeParser
Returns the parsed object.- Specified by:
getResult
in 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:
setDocumentLocator
in interfaceContentHandler
-
processingInstruction
PI's are by default ignored.- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
skippedEntity
Skipped entities raise an exception by default.- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
isEmpty
protected static boolean isEmpty(char[] pChars, int pStart, int pLength) -
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-