title: PrintStream doesn't print
body: <pre><code>in = new BufferedReader (new InputStreamReader(client.getInputStream()));
  out = new DataOutputStream(client.getOutputStream());
  ps = new PrintStream(out);
  
  public void run() {
      String line;    
  
      try {
          while ((line = in.readLine()) != null &amp;&amp; line.length()&gt;0) {
              System.out.println("got header line: " + line);
          }
          ps.println("HTTP/1.0 200 OK");
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      ps.println("Content-type: text/html\n\n");
      ps.println("&lt;HTML&gt; &lt;HEAD&gt;hello&lt;/HEAD&gt; &lt;/HTML&gt;");
  }
  </code></pre>
  
  <p>The program runs without errors and ps.println does not print anything to the browser.
  Any idea why?</p>