Java中输入输出流
2024-08-25 04:34:19
InputStream:所有字节输入流的所有类的超类。
read(byte[] b)从输入流中读取一定数量的字节,并将其存储在缓冲数组b中
reset()将此流重新定位到最后一次对此流调用mark方法的地方
InputStream的所有子类:FileInputStream,ByteArrayInputStream,FileInputStream,StringBufferInputStream
OutputStream:所有字节输出流的所有流的超类。
flush():刷新该流中的缓冲,将缓冲数据写到目的文件中
最新文章
- SharePoint 2013 排错之";Code blocks are not allowed in this file";
- Win2003x64系统
- Conjugate prior relationships
- 【leetcode】Subsets II
- HDU 1079 Calendar Game(简单博弈)
- Node.js学习 - File Operation
- MySQL 最左前缀(Leftmost Prefix) &; 组合索引(复合索引,多列索引)
- Go语言学习索引
- iOS 10 设备权限问题(相机,相册等)
- 二十一、proxyDesign 代理模式
- DotNetCore学习-2.程序启动
- mysql报错:1130 -host 'localhost' is not allowed to connect to this mysql server
- [BUG]数据库日期格式, 到页面是毫秒值
- 看opengl 写代码(4) 画一个圆
- scrapy官方安装方法
- 使用mac学习java的一些基本操作
- Groovy基本句法
- C++ XML文件解析
- 5-1、easyUI-菜单与按钮(上节问题与解决)
- Cef3 学习资料