title: Can you create a FileWriter or BufferedWriter directly from an InputStream?
body: <p>So I am using Java.net.URL to get a connection to a URL that contains some xml (.atom?) data for parsing for writing to a local file.</p>
  
  <p>This is teaching me a lot about reading and writing. Here is my current process:</p>
  
  <ol>
  <li>create URL object</li>
  <li>get a "Stream"</li>
  <li>Create a InputStreamReader</li>
  <li>Wrap the ISR in Buffered Reader</li>
  <li>Create FileWriter</li>
  <li>Wrap FW in Bufferedwriter</li>
  <li>line by line, read then write</li>
  <li>close the BufferedWriter.</li>
  </ol>
  
  <p>It works! I learned the difference between reader, BufferedReader, writer and BfferedWriter. That's great. I'm a little unclear on streams, but that's ok for now.</p>
  
  <p><strong>However, I was wondering if there is a way to create a BufferedWriter directly from an InputStream to save all those middle steps.</strong></p>
  
  <ol>
  <li>Create URL object</li>
  <li>get a "Stream"</li>
  <li>skip straight to BufferedWriter()</li>
  <li>write to local file.</li>
  <li>close the BufferedWriter</li>
  </ol>
  
  <p>I see the BufferedWriter constuctor takes a writer, so I'm assuming not, but I can't help but wonder if you could cut down some steps.</p>