Java: Properly use close()-method on a PrinterWriter
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/484925/does-closing-the-bufferedreader-printwriter-close-the-socket-connection">Does closing the BufferedReader/PrintWriter close the socket connection?</a>  </p>
</blockquote>



<p>My code is as following:</p>

<blockquote>
<pre><code>PrinterWriter pw = new PrinterWriter(new BufferedWriter(new
FileWriter("textfile.txt", true)));

pw.close();
</code></pre>
</blockquote>

<p>Have I now properly closed PrinterWriter, BufferedWriter and FileWriter? Or have I just closed PrinterWriter?</p>
