org.apache.xmlrpc.parser

Class AtomicParser

Implemented Interfaces:
ContentHandler, TypeParser
Known Direct Subclasses:
BigDecimalParser, BigIntegerParser, BooleanParser, CalendarParser, DateParser, DoubleParser, FloatParser, I1Parser, I2Parser, I4Parser, I8Parser, LongParser, NullParser, StringParser

public abstract class AtomicParser
extends TypeParserImpl

Abstract base implementation of TypeParser for parsing an atomic value.

Field Summary

protected StringBuffer
sb

Constructor Summary

AtomicParser()
Creates a new instance.

Method Summary

void
characters(char[] pChars, int pStart, int pLength)
void
endElement(String pURI, String pLocalName, String pQName)
protected abstract void
setResult(String pResult)
void
startDocument()
void
startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs)

Methods inherited from class org.apache.xmlrpc.parser.TypeParserImpl

characters, endDocument, endPrefixMapping, getDocumentLocator, getResult, ignorableWhitespace, isEmpty, processingInstruction, setDocumentLocator, setResult, skippedEntity, startDocument, startPrefixMapping

Field Details

sb

protected StringBuffer sb

Constructor Details

AtomicParser

protected AtomicParser()
Creates a new instance.

Method Details

characters

public void characters(char[] pChars,
                       int pStart,
                       int pLength)
            throws SAXException
Overrides:
characters in interface TypeParserImpl

endElement

public void endElement(String pURI,
                       String pLocalName,
                       String pQName)
            throws SAXException

setResult

protected abstract void setResult(String pResult)
            throws SAXException

startDocument

public void startDocument()
            throws SAXException
Overrides:
startDocument in interface TypeParserImpl

startElement

public void startElement(String pURI,
                         String pLocalName,
                         String pQName,
                         Attributes pAttrs)
            throws SAXException

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.