rdf/base/idl/nsIRDFXMLParser.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rdf/base/idl/nsIRDFXMLParser.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +#include "nsIRDFDataSource.idl"
    1.12 +#include "nsIStreamListener.idl"
    1.13 +#include "nsIURI.idl"
    1.14 +
    1.15 +[scriptable, uuid(1831dd2e-1dd2-11b2-bdb3-86b7b50b70b5)]
    1.16 +interface nsIRDFXMLParser : nsISupports
    1.17 +{
    1.18 +    /**
    1.19 +     * Create a stream listener that can be used to asynchronously
    1.20 +     * parse RDF/XML.
    1.21 +     * @param aSink the RDF datasource the will receive the data
    1.22 +     * @param aBaseURI the base URI used to resolve relative
    1.23 +     *   references in the RDF/XML
    1.24 +     * @return an nsIStreamListener object to handle the data
    1.25 +     */
    1.26 +    nsIStreamListener parseAsync(in nsIRDFDataSource aSink, in nsIURI aBaseURI);
    1.27 +
    1.28 +    /**
    1.29 +     * Parse a string of RDF/XML
    1.30 +     * @param aSink the RDF datasource that will receive the data
    1.31 +     * @param aBaseURI the base URI used to resolve relative
    1.32 +     *   references in the RDF/XML
    1.33 +     * @param aSource a UTF8 string containing RDF/XML data.
    1.34 +     */
    1.35 +    void parseString(in nsIRDFDataSource aSink, in nsIURI aBaseURI, in AUTF8String aSource);
    1.36 +};

mercurial