字节流:
InputStream
OutputStream
操作文件的字节流
FileInputStream
FileOutputStream
提升效率:
BufferedInputStream
BufferedOutputStream
字符流
Reader
Writer
操作文件的字符流
FileReader
FileWriter
提升效率:
BufferedReader
BufferedWriter
如果需要字符和字节之间的转换:
字节到字符:InputStreamReader
字符到字节:OutputStreamWriter |
|