var segments = []; for (var count = stream.available(); count; count = stream.available()) { var segment = sis.read(count); segments.push(segment); } 
var segments = []; for (var count = stream.available(); count; count = stream.available()) segments.push(sis.readBytes(count)); 
this.readFromStream = function(stream, charset){    var sis = this.CCSV("@mozilla.org/scriptableinputstream;1", "nsIScriptableInputStream");    sis.init(stream);    var segments = [];    for (var count = stream.available(); count; count = stream.available())    {        var segment = sis.read(count);        segments.push(segment);    }    sis.close();    var text = segments.join("");    return this.convertToUnicode(text, charset);};
2454	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2454/01dec9c4407b1ce11a8e6e7e2314ae63921ba454/lib.js/clean/extension/content/firebug/lib.js