bioclipse

How to convert a string to an inputstream in Bioclipse javascript editor?

I'm trying to save an a string to a file in with a javascript in the Bioclipse workbench, by using ui.save( "filename", "my string" ); ...but get an error that ui.save takes only an inputstream as the second parameter. How can I convert a string to an inputstream in the Bioclipse javascript context? (Btw, I think Bioclipse uses the Rh...