| IO | 字符流 | Reader(源) | BufferedReader | LineNumberReader |
| InputStreamReader | FileReader(字節流通向字符流的橋梁) | |||
| StringReader | ||||
| Writer(目的) | BufferedWriter | |||
| OutputStreamWriter | FileWriter(字符流通向字節流的橋梁) | |||
| StringWriter | 空 | |||
| PrintWriter | 空 | |||
| 字節流 | InputStream(源) | FileInputStream | 空 | |
| SequenceInputStream | 合并流 | |||
| ByteArrayInputStream | 在構造的時候,需要接收數據源,而且數據源為字節數組; | |||
| OutputStream(目的) | FileOutputStream | 空 | ||
| ByteArrayOutputStream | 內部定義了一個可變長度的字節數組,它就是數據目的地; |
新聞熱點
疑難解答