1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/rdf/base/idl/rdfISerializer.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface rdfIDataSource; 1.12 +interface nsIOutputStream; 1.13 + 1.14 +/** 1.15 + * Interface used to serialize RDF. 1.16 + * 1.17 + * @status PLASMA 1.18 + */ 1.19 + 1.20 +[scriptable, uuid(f0edfcdd-8bca-4d32-9226-7421001396a4)] 1.21 +interface rdfISerializer : nsISupports 1.22 +{ 1.23 + /** 1.24 + * Synchronously serialize the given datasource to the outputstream. 1.25 + * 1.26 + * Implementations are not required to implement any buffering or 1.27 + * other stream-based optimizations. 1.28 + * 1.29 + * @param aDataSource The RDF data source to be serialized. 1.30 + * @param aOut The output stream to use. 1.31 + */ 1.32 + void serialize(in rdfIDataSource aDataSource, in nsIOutputStream aOut); 1.33 +};