在jsp里調用out.flush()和response.flushBuffer()有什么區別


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. 

 

 

_網上獲取


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM