英语达人帮我解释一下BufferedInputStream的注释,非常简单,先来先得。

shoulders 2005-07-04 01:17:55
A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the input and to support the mark and reset methods. When the BufferedInputStream is created, an internal buffer array is created. As bytes from the stream are read or skipped, the internal buffer is refilled as necessary from the contained input stream, many bytes at a time. The mark operation remembers a point in the input stream and the reset operation causes all the bytes read since the most recent mark operation to be reread before new bytes are taken from the contained input stream.
尤其这段:
The mark operation remembers a point in the input stream and the reset operation causes all the bytes read since the most recent mark operation to be reread before new bytes are taken from the contained input stream.
说个大概意思就可以了不用都翻译。
...全文
112 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
mofeir 2005-07-05
  • 打赏
  • 举报
回复
猪,不会就用CIBA
wthwebbe 2005-07-04
  • 打赏
  • 举报
回复
"标记"操作在input stream里面记忆了1个指针并且reset操作。。导致从最近的在最新的字节从所包含的input stream里面从新读取"标记"操作所有的字节

意思就是做个标记。。然后这个标记指出从上个作的那个标记开始以后所有的字节

差不多就这个意思了

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧