首页 > Web开发 > 详细

在jsp里调用out.flush()和response.flushBuffer()有什么区别

时间:2017-11-01 11:43:23      阅读:1444      评论:0      收藏:0      [点我收藏+]

out.flush(); 
out是PrintWriter的实例 
public void flush() 
       Flush the stream. 

response.flushBuffer(); 
response是HttpServletResponse的实例 
public void flushBuffer() 

throws java.io.IOException 
Forces any content in the buffer to be written to the client. A call to this method automatically commits the response, meaning the status code and headers will be written. 

 

 

_网上获取

在jsp里调用out.flush()和response.flushBuffer()有什么区别

原文:http://www.cnblogs.com/Stir-friedEggplant/p/7765567.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!