Package org.apache.xmlrpc.parser
Class MapParser
java.lang.Object
org.apache.xmlrpc.parser.TypeParserImpl
org.apache.xmlrpc.parser.RecursiveTypeParserImpl
org.apache.xmlrpc.parser.MapParser
- All Implemented Interfaces:
TypeParser
,ContentHandler
TypeParser
implementation
for maps.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private boolean
private int
private Map
private StringBuffer
private Object
Fields inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl
cfg
-
Constructor Summary
ConstructorsConstructorDescriptionMapParser
(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.NamespaceContextImpl pContext, TypeFactory pFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
characters
(char[] pChars, int pOffset, int pLength) void
endElement
(String pURI, String pLocalName, String pQName) void
ignorableWhitespace
(char[] pChars, int pOffset, int pLength) void
void
startElement
(String pURI, String pLocalName, String pQName, Attributes pAttrs) Methods inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl
endPrefixMapping, endValueTag, processingInstruction, skippedEntity, startPrefixMapping, startValueTag
Methods inherited from class org.apache.xmlrpc.parser.TypeParserImpl
endDocument, getDocumentLocator, getResult, isEmpty, setDocumentLocator, setResult
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
-
Field Details
-
level
private int level -
nameBuffer
-
nameObject
-
map
-
inName
private boolean inName -
inValue
private boolean inValue -
doneValue
private boolean doneValue
-
-
Constructor Details
-
MapParser
public MapParser(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.NamespaceContextImpl pContext, TypeFactory pFactory) Creates a new instance.- Parameters:
pConfig
- The request or response configuration.pContext
- The namespace context.pFactory
- The factory.
-
-
Method Details
-
addResult
- Specified by:
addResult
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
startElement
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classRecursiveTypeParserImpl
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classRecursiveTypeParserImpl
- Throws:
SAXException
-