20230625 java.io.BufferedReader
介绍
- java.io.BufferedReader
- public class BufferedReader extends Reader
- 对应的字节流是 BufferedInputStream
API
构造器
- BufferedReader(Reader in)
- BufferedReader(Reader in, int sz)
- sz : size ,指定缓冲区
char[]
大小
- sz : size ,指定缓冲区
public
- readLine
String readLine() throws IOException
- 读一行内容
- lines
Stream<String> lines()
- 返回元素是行内容的 Stream