Files
Hui-s-notebook/logseq-java/journals/2022_04_21.md
2024-02-02 00:12:49 +08:00

43 lines
953 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- [[File]]
- [[字符流]]
- [[缓冲流]]
- [[Properties]]
- [[序列化]]
-
-
- 总结
collapsed:: true
- 字节流
- 特点
- 可操作文本文件和二进制文件
- File类
- 代表文件或目录
- 字节输入流FileInputStream
- 读取文件内容到程序内部
- 字节输出流FileOutputStream
- 文件复制
- 先读取,再写入
- 文件输入流,文件输出流
- 字符流
- FileReader
- FileWrite
- 缓冲流
- 功能流的一种
- 特点
- 不直接面对数据源,是节点流的一种功能封装
- 字节缓冲流
- BufferedInputStream
- BufferedOutputStream
- 字符缓冲流
- BufferedReader
- BufferedWriter
- 流太多如何选择?
- 遇事不决,选字节流+缓冲流
- Properties
- 属性也是一种Map体系的集合
- 使用
- setProperties
- getProperties
- 项目的应用
- 获取.properties文件中的属性
- PropertierUtil