Create a file in filesystem using java
<p>I am creating an <code>xml</code> file using document object which goes something like this.</p>

<pre><code>DOMSource ds=new DOMSource(doc);

PrintStream ps=new PrintStream("file.xml");
StreamResult sr=new StreamResult(ps);    
javax.xml.Transformer.transform(ds,sr);
</code></pre>

<p>The file creation is fine and it is getting created in my local directory. </p>

<p>What I want is this file to be created/uploaded into a file-system (<code>fs:///myresources/myproject/</code>) using java.</p>

<p>How to do it?</p>
