20 - 5.8 5.4 PushbackReader unread(char ch) read() 1...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
{ 1 5.8 5.4 回压字符流 { PushbackReader 类创建的对象为回压字 符流。回压流可以使用 unread(char ch) 将一个字符回压到该流中,被回压的字符 是该回压流紧接着再调用 read() 方法时最 先读出的字符。 { 回压流可以用来监视读出的信息,当读出 一个不需要的信息时,可以不处理该信息, 而将需要的信息回压,然后再读出回压的 信息。
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
{ 2 { 该类的构造方法是: PushbackReader(Reader in) { 我们可以使用回压流技术读取原始的网页 文件。当读取到 < 符号时,将 回压, 读取到 > 符号时.将 GT 回压。 5.9
Background image of page 2
{ 3 5.5 数据流 { DataInputstream 类和 Dataoutputstream 类创建的对象分别被 称为数据输入流和数据输出流。它们允许
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/25/2011 for the course CS NetworkPro taught by Professor Xiaohuawang during the Summer '09 term at Tsinghua University.

Page1 / 4

20 - 5.8 5.4 PushbackReader unread(char ch) read() 1...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online