Home · All Classes · Annotated · Functions

WbXmlReader Class Reference

The WbXmlReader class reads the contents of a Wireless Binary XML (WBXML) stream More...

#include <WbXmlReader>

Inherits QXmlReader.

Inherited by CacheOperationReader, OtaReader, ServiceIndicationReader, ServiceLoadingReader, and WmlReader.

Public Functions

Protected Functions


Detailed Description

The WbXmlReader class reads the contents of a Wireless Binary XML (WBXML) stream

The WbXmlReader base class provides an interface to parse Wireless Binary XML (WBXML) data streams. The data appears as an XML object that can be navigated using the facilities in QXmlReader.

WBXML files use binary numbers to indicate the names of tags and attributes. The user, usually a subclass, is responsible for providing the mappings from binary numbers to names.

There is no standard list of tag mappings: each format that is based on WBXML has its own set. The subclasses WmlReader and OtaReader provide two common sets, for the Wireless Markup Language (WML), and Over-The-Air (OTA) Network Configuration messages.

See also WmlReader and OtaReader.


Member Function Documentation

WbXmlReader::WbXmlReader ()

Construct a new WBXML reader object, with no default tag sets.

WbXmlReader::WbXmlReader ( const WbXmlTagSet & tags, const WbXmlTagSet & attrs )

Construct a new WBXML reader object, with specific tag sets, tags and attrs.

WbXmlReader::~WbXmlReader ()   [virtual]

Destruct this WBXML reader.

QXmlDTDHandler * WbXmlReader::DTDHandler () const   [virtual]

Return the current DTD handler.

Reimplemented from QXmlReader.

See also setDTDHandler().

QXmlContentHandler * WbXmlReader::contentHandler () const   [virtual]

Return the current content handler.

Reimplemented from QXmlReader.

See also setContentHandler().

QXmlDeclHandler * WbXmlReader::declHandler () const   [virtual]

Return the current declaration handler.

Reimplemented from QXmlReader.

See also setDeclHandler().

QXmlEntityResolver * WbXmlReader::entityResolver () const   [virtual]

Return the current entity resolver.

Reimplemented from QXmlReader.

See also setEntityResolver().

QXmlErrorHandler * WbXmlReader::errorHandler () const   [virtual]

Return the current error handler.

Reimplemented from QXmlReader.

See also setErrorHandler().

bool WbXmlReader::feature ( const QString & name, bool * ok = 0 ) const   [virtual]

Check for feature name and return its value. Also return whether the feature exists in ok.

Reimplemented from QXmlReader.

See also setFeature().

bool WbXmlReader::hasFeature ( const QString & name ) const   [virtual]

Determine if this reader has the feature name.

Reimplemented from QXmlReader.

bool WbXmlReader::hasProperty ( const QString & name ) const   [virtual]

Determine if this reader has the property name.

Reimplemented from QXmlReader.

QXmlLexicalHandler * WbXmlReader::lexicalHandler () const   [virtual]

Return the current lexical handler.

Reimplemented from QXmlReader.

See also setLexicalHandler().

bool WbXmlReader::parse ( const QXmlInputSource & input )   [virtual]

This function is obsolete. It parses the data from input.

Reimplemented from QXmlReader.

bool WbXmlReader::parse ( const QXmlInputSource * input )   [virtual]

This is an overloaded member function, provided for convenience.

Parse the specified QXmlInputSource "input" object. Use of this function is not recommended, because QXmlInputSource is string-based, whereas WBXML requires binary input. To preserve the binary data, the data within "input" should be base64-encoded before calling this function.

Reimplemented from QXmlReader.

bool WbXmlReader::parse ( const QByteArray & input )

This is an overloaded member function, provided for convenience.

Parse the WBXML data in the "input" array.

bool WbXmlReader::parse ( QIODevice & input )

This is an overloaded member function, provided for convenience.

Parse the WBXML data from the specified "input" device.

void * WbXmlReader::property ( const QString & name, bool * ok = 0 ) const   [virtual]

Check for property name and return its value. Also return whether the property exists in ok.

Reimplemented from QXmlReader.

See also setProperty().

QString WbXmlReader::resolveOpaque ( const QString & attr, const QByteArray & data )   [virtual protected]

Resolve an OPAQUE data blob within WBXML input into its string version. The attr parameter is the name of the attribute containing the OPAQUE data to be resolved, and the data parameter contains the data to be resolved. The attr will be QString() for OPAQUE data blobs within element bodies.

void WbXmlReader::setContentHandler ( QXmlContentHandler * handler )   [virtual]

Set the content handler.

Reimplemented from QXmlReader.

See also contentHandler().

void WbXmlReader::setDTDHandler ( QXmlDTDHandler * handler )   [virtual]

Set the DTD handler.

Reimplemented from QXmlReader.

void WbXmlReader::setDeclHandler ( QXmlDeclHandler * handler )   [virtual]

Set the declaration handler.

Reimplemented from QXmlReader.

See also declHandler().

void WbXmlReader::setEntityResolver ( QXmlEntityResolver * handler )   [virtual]

Set the entity resolver to handler.

Reimplemented from QXmlReader.

See also entityResolver().

void WbXmlReader::setErrorHandler ( QXmlErrorHandler * handler )   [virtual]

Set the error handler.

Reimplemented from QXmlReader.

See also errorHandler().

void WbXmlReader::setFeature ( const QString & name, bool value )   [virtual]

Set the feature name to value.

Reimplemented from QXmlReader.

See also feature().

void WbXmlReader::setLexicalHandler ( QXmlLexicalHandler * handler )   [virtual]

Set the lexical handler.

Reimplemented from QXmlReader.

See also lexicalHandler().

void WbXmlReader::setProperty ( const QString & name, void * value )   [virtual]

Set the property name to value.

Reimplemented from QXmlReader.

See also property().

void WbXmlReader::setTagSets ( const WbXmlTagSet & tags, const WbXmlTagSet & attrs )

Set the mappings to be used to parse tag and attribute numbers to tags and attrs respectively.

QString WbXmlReader::toXml ( const QByteArray & input )

Parse the contents of input and convert it into regular XML text.

QString WbXmlReader::toXml ( QIODevice & input )

This is an overloaded member function, provided for convenience.

Parse the contents of input and convert it into regular XML text.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7