context: function ics_exportToStream(aStream, aCount, aItems) {    icssrv = Components.classes["@mozilla.org/calendar/ics-service;1"]                       .getService(Components.interfaces.calIICSService);    var calComp = icssrv.createIcalComponent("VCALENDAR");    calComp.version = "2.0";    calComp.prodid = "-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN";        for each (item in aItems) {        calComp.addSubcomponent(item.icalComponent);    }    var str = calComp.serializeToICS();    // Convert the javascript string to an araay of bytes, using the    // utf8 encoder    var convStream = Components.classes["@mozilla.org/intl/converter-output-stream;1"]                               .getService(Components.interfaces.nsIConverterOutputStream);    convStream.init(aStream, 'UTF-8', 0, 0x0000);    convStream.writeString(str);    convStream.close();    return;};
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/563ecb581ba07105b240663b32adaf2c86e6159e/calIcsImportExport.js/clean/calendar/import-export/calIcsImportExport.js