title: Can I use both PrintWriter and BufferedOutputStream on the same outputstream?
body: <p>Can I use both PrintWriter and BufferedOutputStream on the same outputstream?</p>
  
  <p>The situation is this:</p>
  
  <p>I'm having a SSLSocket program and I want to be able to transfer both Strings and byte [] over the socket at different points in time easily without having to cast byte [] to string etc, however, PrintWriter only allows me to transfer Strings and BufferedOutputStream only allows me to transfer bytes.</p>