请说出学习过的IO流中的常用方法?
- 字节输入流 InputStream
- read() 读取一个字节
- read(byte[]) 读取一个字节数组
- 字节输出流 OutputStream
- write(int) 写入一个字节
- write(byte[]) 写入一个字节数组
- 字符输入流 Reader
- read() 读取一个字符
- read(char[]) 读取一个字符数组
- 字符缓冲输入流 BufferedReader
- readLine() 读取一行字符串
- 字符输出流 Writer
- write(int) 写入一个字符
- write(char[]) 写入一个字符数组
- write(String) 写入一个字符串
- 字符缓冲输出流 BufferedWriter
- newLine() 写入一个换行符