michael@0: /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface rdfIDataSource; michael@0: interface nsIOutputStream; michael@0: michael@0: /** michael@0: * Interface used to serialize RDF. michael@0: * michael@0: * @status PLASMA michael@0: */ michael@0: michael@0: [scriptable, uuid(f0edfcdd-8bca-4d32-9226-7421001396a4)] michael@0: interface rdfISerializer : nsISupports michael@0: { michael@0: /** michael@0: * Synchronously serialize the given datasource to the outputstream. michael@0: * michael@0: * Implementations are not required to implement any buffering or michael@0: * other stream-based optimizations. michael@0: * michael@0: * @param aDataSource The RDF data source to be serialized. michael@0: * @param aOut The output stream to use. michael@0: */ michael@0: void serialize(in rdfIDataSource aDataSource, in nsIOutputStream aOut); michael@0: };