JSP的out对象问题

[复制链接]
查看11 | 回复4 | 2006-9-26 17:30:03 | 显示全部楼层 |阅读模式
out对象的clearBuffer()方法和flush()方法到底有什么区别
回复

使用道具 举报

千问 | 2006-9-26 17:30:03 | 显示全部楼层
flush 是将buffer中的内容刷新到输出流中,就是输出到客户浏览器上
而clearBuffer看名字就是清除buffer中的内容
回复

使用道具 举报

千问 | 2006-9-26 17:30:03 | 显示全部楼层
二楼说的对吗?我看的资料上说clearBuffer()也会把内容输出,而clear()方法才是只清空不输出。
回复

使用道具 举报

千问 | 2006-9-26 17:30:03 | 显示全部楼层
clearBuffer public abstract void clearBuffer()

throws java.io.IOException
Clears the current contents of the buffer. Unlike clear(), this method will not throw an IOException if the buffer has already been flushed. It merely clears the current content of the buffer and returns.Throws:java.io.IOException - If an I/O error occurs
回复

使用道具 举报

千问 | 2006-9-26 17:30:03 | 显示全部楼层
什么资料上说的阿???

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行