title: Java: Saving StreamResult to a file
body: <p>I am doing some data conversion(like csv) to xml with SAX then using transformer in Java.  The result is in StreamResult, and I am trying to save this result to a file.xml but I can't find way to save StreamResult into file.  am I doing this all wrong?</p>