title: Performance: BufferedOutputStream vs FileWriter
body: <p>I've always used a <a href="http://docs.oracle.com/javase/6/docs/api/java/io/FileWriter.html" rel="noreferrer"><code>FileWriter</code></a> to write text to a file in Java. Apparently you can also use a <a href="http://docs.oracle.com/javase/6/docs/api/java/io/BufferedOutputStream.html" rel="noreferrer"><code>BufferedOutputStream</code></a> as well. After reading both javadocs carefully, I can't seem to tell which was is faster/more efficient.</p>
  
  <p>So I ask: is there a performance differential (even if minimal) between these two file I/O methods? If so, what are they and why? If not, why are they effectively the same?</p>
  
  <p>Are there scenarios where one is preferred over the other? Thanks in advance!</p>