1、以下选项中关于如下代码的说法正确的是()。(选择二项)public class TestBuffered {public static void main(String[] args) throws IOException {BufferedReader br =new BufferedReader(new FileReader("d:/bjsxt1.txt"));BufferedWriter bw =new BufferedWriter(new FileWriter("d:/bjsxt2.txt"));String str = br.readLine();while(str !=null){bw.write(str);bw.newLine();str = br.readLine();}br.close();bw.close();}}
A. 该类使用字符流实现了文件复制,将d:/bjsxt1.txt复制为d:/bjsxt2.txt
B. FileReader和FileWriter是处理流,直接从文件读写数据
C. BufferedReader和BufferedWriter是节点流,提供缓冲区功能,提高读写效率
D. readLine()可以读取一行数据,返回值是字符串类型,简化了操作