Detailed Description
The QWbXmlReader class reads the contents of a Wireless Binary XML (WBXML) stream
The QWbXmlReader base class provides an interface to parse Wireless Binary XML (WBXML) data streams according to the WAP standard wap-192-wbxml-20010725-a.pdf. 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 respectively.
See also QWmlReader and QOtaReader.
Member Function Documentation
QWbXmlReader::QWbXmlReader ()
Construct a new WBXML reader object, with no default tag sets.
QWbXmlReader::QWbXmlReader ( const QWbXmlTagSet & tags, const QWbXmlTagSet & attrs )
Construct a new WBXML reader object, with specific tag sets, tags and attrs.
QWbXmlReader::~QWbXmlReader () [virtual]
Destruct this WBXML reader.
QXmlDTDHandler * QWbXmlReader::DTDHandler () const [virtual]
Return the current DTD handler.
Reimplemented from QXmlReader.
See also setDTDHandler().
QXmlContentHandler * QWbXmlReader::contentHandler () const [virtual]
Return the current content handler.
Reimplemented from QXmlReader.
See also setContentHandler().
QXmlDeclHandler * QWbXmlReader::declHandler () const [virtual]
Return the current declaration handler.
Reimplemented from QXmlReader.
See also setDeclHandler().
QXmlEntityResolver * QWbXmlReader::entityResolver () const [virtual]
Return the current entity resolver.
Reimplemented from QXmlReader.
See also setEntityResolver().
QXmlErrorHandler * QWbXmlReader::errorHandler () const [virtual]
Return the current error handler.
Reimplemented from QXmlReader.
See also setErrorHandler().
bool QWbXmlReader::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 QWbXmlReader::hasFeature ( const QString & name ) const [virtual]
Determine if this reader has the feature name.
Reimplemented from QXmlReader.
bool QWbXmlReader::hasProperty ( const QString & name ) const [virtual]
Determine if this reader has the property name.
Reimplemented from QXmlReader.
QXmlLexicalHandler * QWbXmlReader::lexicalHandler () const [virtual]
Return the current lexical handler.
Reimplemented from QXmlReader.
See also setLexicalHandler().
bool QWbXmlReader::parse ( const QXmlInputSource & input ) [virtual]
This function is obsolete. It parses the data from input.
Reimplemented from QXmlReader.
bool QWbXmlReader::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 QWbXmlReader::parse ( const QByteArray & input )
This is an overloaded member function, provided for convenience.
Parse the WBXML data in the "input" array.
bool QWbXmlReader::parse ( QIODevice & input )
This is an overloaded member function, provided for convenience.
Parse the WBXML data from the specified "input" device.
void * QWbXmlReader::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 QWbXmlReader::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 QWbXmlReader::setContentHandler ( QXmlContentHandler * handler ) [virtual]
Set the content handler.
Reimplemented from QXmlReader.
See also contentHandler().
void QWbXmlReader::setDTDHandler ( QXmlDTDHandler * handler ) [virtual]
Set the DTD handler.
Reimplemented from QXmlReader.
void QWbXmlReader::setDeclHandler ( QXmlDeclHandler * handler ) [virtual]
Set the declaration handler.
Reimplemented from QXmlReader.
See also declHandler().
void QWbXmlReader::setEntityResolver ( QXmlEntityResolver * handler ) [virtual]
Set the entity resolver to handler.
Reimplemented from QXmlReader.
See also entityResolver().
void QWbXmlReader::setErrorHandler ( QXmlErrorHandler * handler ) [virtual]
Set the error handler.
Reimplemented from QXmlReader.
See also errorHandler().
void QWbXmlReader::setFeature ( const QString & name, bool value ) [virtual]
Set the feature name to value.
Reimplemented from QXmlReader.
See also feature().
void QWbXmlReader::setLexicalHandler ( QXmlLexicalHandler * handler ) [virtual]
Set the lexical handler.
Reimplemented from QXmlReader.
See also lexicalHandler().
void QWbXmlReader::setProperty ( const QString & name, void * value ) [virtual]
Set the property name to value.
Reimplemented from QXmlReader.
See also property().
void QWbXmlReader::setTagSets ( const QWbXmlTagSet & tags, const QWbXmlTagSet & attrs )
Set the mappings to be used to parse tag and attribute numbers to tags and attrs respectively.
QString QWbXmlReader::toXml ( const QByteArray & input )
Parse the contents of input and convert it into regular XML text.
QString QWbXmlReader::toXml ( QIODevice & input )
This is an overloaded member function, provided for convenience.
Parse the contents of input and convert it into regular XML text.