|
MoSync 3.2.1
|
8-bit SAX parser context wrapper class. More...
#include <MTXml/MTSax.h>
Public Member Functions | |
| SaxContext (void) | |
| void | start (SaxListener &newSaxListener, MtxListener &newMtxListener) |
| bool | feed (char *data) |
| bool | feedProcess (char *data) |
| void | stop (void) |
| bool | isStarted (void) const |
Static Protected Member Functions | |
| static void | encoding (MTXSaxContext *context, const char *value) |
| static void | startElement (MTXSaxContext *context, const void *name, const void **attributes) |
| static void | endElement (MTXSaxContext *context, const void *name) |
| static void | characters (MTXSaxContext *context, const void *data, int length) |
| static void | dataRemains (MTXSaxContext *context, const char *data, int length) |
| static void | parseError (MTXSaxContext *context, int offset) |
Protected Attributes | |
| MTXSaxContext | mContext |
| MtxListener * | mMtxListener |
| SaxListenerW * | mSaxListenerW |
8-bit SAX parser context wrapper class.
| Mtx::SaxContext::SaxContext | ( | void | ) |
Constructor.
| void Mtx::SaxContext::start | ( | SaxListener & | newSaxListener, |
| MtxListener & | newMtxListener | ||
| ) |
Initializes this parser context using the specified callback interfaces. The SAX interface receives XML data, while the MTXml interface handles buffer management.
| newSaxListener | The SAX interface implementation to use. |
| newMtxListener | The MTXml interface implementation to use. |
| bool Mtx::SaxContext::feed | ( | char * | data | ) |
Feeds some data into this parser context. The context must already be started. Any remaining data is passed to the MtxListener interface.
| data | The (null-terminated) data to feed into the parser. |
| bool Mtx::SaxContext::feedProcess | ( | char * | data | ) |
Feeds some data into this parser context, with UTF-8 to Latin-1 conversion. The context must already be started. Any remaining data is passed to the MtxListener interface.
| data | The (null-terminated) data to feed into the parser. |
| void Mtx::SaxContextBase::stop | ( | void | ) | [inherited] |
De-initializes this parser context if it was previously initialized.
| bool Mtx::SaxContextBase::isStarted | ( | void | ) | const [inherited] |
true if this parser context is initialized, otherwise false. | static void Mtx::SaxContextBase::encoding | ( | MTXSaxContext * | context, |
| const char * | value | ||
| ) | [static, protected, inherited] |
| static void Mtx::SaxContextBase::startElement | ( | MTXSaxContext * | context, |
| const void * | name, | ||
| const void ** | attributes | ||
| ) | [static, protected, inherited] |
| static void Mtx::SaxContextBase::endElement | ( | MTXSaxContext * | context, |
| const void * | name | ||
| ) | [static, protected, inherited] |
| static void Mtx::SaxContextBase::characters | ( | MTXSaxContext * | context, |
| const void * | data, | ||
| int | length | ||
| ) | [static, protected, inherited] |
| static void Mtx::SaxContextBase::dataRemains | ( | MTXSaxContext * | context, |
| const char * | data, | ||
| int | length | ||
| ) | [static, protected, inherited] |
| static void Mtx::SaxContextBase::parseError | ( | MTXSaxContext * | context, |
| int | offset | ||
| ) | [static, protected, inherited] |
MTXSaxContext Mtx::SaxContextBase::mContext [protected, inherited] |
MtxListener* Mtx::SaxContextBase::mMtxListener [protected, inherited] |
SaxListenerW* Mtx::SaxContextBase::mSaxListenerW [protected, inherited] |