title: java inputstream print to console the content
body: <pre><code>sock = new Socket("www.google.com", 80);
         out  = new BufferedOutputStream(sock.getOutputStream());
         in   = new BufferedInputStream(sock.getInputStream());
  </code></pre>
  
  <p>When i try to do printing out of content inside "in" like below</p>
  
  <pre><code> BufferedInputStream bin = new BufferedInputStream(in);
   int b;
   while ( ( b = bin.read() ) != -1 )
   {
  
       char c = (char)b;         
  
       System.err.print(""+(char)b); //This prints out content that is unreadable.
                                     //Isn't it supposed to print out html tag?
   }
  </code></pre>