new PrintWriter(s.getOutputStream(),true); 在这里我已经将其设置为true了
所以会自动flush的...//  PrintWriter(OutputStream out, boolean autoFlush) 

解决方案 »

  1.   

          pw.write(sb.toString()); // 问题如下??????
          pw.flush();
      

  2.   

    autoFlush A boolean;
     if true, the println, printf, or format methods will flush the output buffer所以你可以用
     pw.println(sb.toString()); // 问题如下??????你的 write是不在 autoflush 范围内的!
      

  3.   

    果然加上 pw.flush();就能正常输出了,这是为什么呢?new PrintWriter(s.getOutputStream(),true); 在这里我已经将其设置为true了 
    谢谢你...