How to convert a string to an inputstream in Bioclipse javascript editor?
<p>I'm trying to save an a string to a file in with a javascript in the <a href="http://bioclipse.net" rel="nofollow">Bioclipse</a> workbench, by using</p>

<p><code>ui.save( "filename", "my string" );</code></p>

<p>...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?</p>

<p>(Btw, I think Bioclipse uses the <a href="http://www.mozilla.org/rhino/" rel="nofollow">Rhino</a> Javascript implementation)</p>
