How java.io.Buffer* stream differs from normal streams?
问题 1) How does buffered streams work in background, how do they differ from normal streams and what are the advantage(s) of using them? 2) DataInputStream is also Byte based. But it is having methods to readLine() . What's the point in here? 回答1: From the BufferedInputStream javadoc: 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