Java - String to StringReader
<p>I have 3rd party library function which only takes Reader as parameter. And I have String that I need to pass into function. How do I do that ? </p>

<pre><code>String s = "Some String";
StringReader sReader = new StringReader(s);

// 3rd Party Function Definition is public File saveResult(Reader source);
</code></pre>

<p>Can I do as  File aFile = saveResult(sReader); ? Or Should I create buffer and call read() first ?</p>

<p>I tried both way, and I am keep getting null pointer exception.</p>
