rem: write : function(buffer, perms){ 
add: write : function(buffer, perms) { 
context: write : function(buffer, perms){    if(!this.fileInst){        dump("Please open a file handle first . . .\n");        return;    }        if(!buffer)        buffer                  = " ";        var buffSize            = buffer.length;    try{    if(!this.fileChannel)        this.fileChannel        = new FileChannel();    if(perms){        var checkPerms  = this.validatePermissions( perms );    if(!checkPerms){        dump("**** Sorry invalid permissions set\n\n");        return;    }                    }    if(!perms)        perms=0644;    //dump("trying to initialize filechannel\n\n");    this.fileChannel.init(this.fileInst, this.mode, perms)    this.fileInst.permissions=perms;    //dump("initialized filechannel and set desired permissions\n\n");        var fileSize            = parseInt( this.fileInst.fileSize );    //dump("got initial file size = "+fileSize+"\n\n");    var outStream           = this.fileChannel.openOutputStream();    //dump("got outStream\n\n");            if( outStream.write(buffer, buffSize) )        //dump("Write to file successful . . . \n\n");    outStream.flush();    }    catch (error){ dump("**** ERROR:"+error+"\n\n"); }},
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/46e7c638c4651d5af5b1ea9556848414e43314af/io.js/buggy/xpcom/tests/utils/io.js