Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Protected Member Functions
nsRDFXMLParser Class Reference

A helper class that is used to parse RDF/XML. More...

#include <nsRDFXMLParser.h>

Inheritance diagram for nsRDFXMLParser:
Inheritance graph
[legend]
Collaboration diagram for nsRDFXMLParser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

nsIStreamListener parseAsync (in nsIRDFDataSource aSink, in nsIURI aBaseURI)
 Create a stream listener that can be used to asynchronously parse RDF/XML.
void parseString (in nsIRDFDataSource aSink, in nsIURI aBaseURI, in AUTF8String aSource)
 Parse a string of RDF/XML.

Static Public Member Functions

static NS_IMETHODIMP Create (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Protected Member Functions

 nsRDFXMLParser ()
virtual ~nsRDFXMLParser ()

Detailed Description

A helper class that is used to parse RDF/XML.

Definition at line 51 of file nsRDFXMLParser.h.


Constructor & Destructor Documentation

Definition at line 69 of file nsRDFXMLParser.cpp.

nsRDFXMLParser::~nsRDFXMLParser ( ) [protected, virtual]

Definition at line 74 of file nsRDFXMLParser.cpp.


Member Function Documentation

NS_IMETHODIMP nsRDFXMLParser::Create ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 53 of file nsRDFXMLParser.cpp.

{
    if (aOuter)
        return NS_ERROR_NO_AGGREGATION;

    nsRDFXMLParser* result = new nsRDFXMLParser();
    if (! result)
        return NS_ERROR_OUT_OF_MEMORY;

    nsresult rv;
    NS_ADDREF(result);
    rv = result->QueryInterface(aIID, aResult);
    NS_RELEASE(result);
    return rv;
}

Here is the call graph for this function:

Create a stream listener that can be used to asynchronously parse RDF/XML.

Parameters:
aSinkthe RDF datasource the will receive the data
aBaseURIthe base URI used to resolve relative references in the RDF/XML
Returns:
an nsIStreamListener object to handle the data
void nsIRDFXMLParser::parseString ( in nsIRDFDataSource  aSink,
in nsIURI  aBaseURI,
in AUTF8String  aSource 
) [inherited]

Parse a string of RDF/XML.

Parameters:
aSinkthe RDF datasource that will receive the data
aBaseURIthe base URI used to resolve relative references in the RDF/XML
aSourcea UTF8 string containing RDF/XML data.

The documentation for this class was generated from the following files: