会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
IT备忘录
述而不作,信而好谷
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
下一页
2019年10月23日
IO流13 --- 转换流实现文件复制 --- 技术搬运工(尚硅谷)
摘要: InputStreamReader 将字节输入流转换为字符输入流 OutputStreamWriter 将字符输出流转换为字节输出流
阅读全文
posted @ 2019-10-23 18:01 地中有山
阅读(235)
评论(0)
推荐(0)
编辑
IO流12 --- 转换流InputStreamReader --- 技术搬运工(尚硅谷)
摘要: InputStreamReader 将字节输入流转换为字符输入流
阅读全文
posted @ 2019-10-23 17:58 地中有山
阅读(136)
评论(0)
推荐(0)
编辑
2019年10月21日
IO流11 --- 缓冲流(字符型)实现文本文件的复制 --- 技术搬运工(尚硅谷)
摘要: 方法一:读到指定字符数组 方法2:一次读一行
阅读全文
posted @ 2019-10-21 16:08 地中有山
阅读(287)
评论(0)
推荐(0)
编辑
2019年10月18日
IO流10 --- 缓冲流(字节型)实现非文本文件的复制 --- 技术搬运工(尚硅谷)
摘要: 字节型缓冲流,BufferedOutputStream默认缓冲区大小 8192字节byte,满了自动flush() @Test public void test6(){ File srcFile = new File("FLAMING MOUNTAIN.JPG"); File destFile =
阅读全文
posted @ 2019-10-18 17:03 地中有山
阅读(169)
评论(0)
推荐(0)
编辑
IO流9 --- 使用FileInputStream和FileOutputStream读写非文本文件 --- 技术搬运工(尚硅谷)
摘要: 字节流读写非文本文件(图片、视频等) @Test public void test5(){ File srcFile = new File("FLAMING MOUNTAIN.JPG"); File destFile = new File("FLAMING MOUNTAIN1.JPG"); File
阅读全文
posted @ 2019-10-18 17:00 地中有山
阅读(157)
评论(0)
推荐(0)
编辑
IO流8 --- 使用FileReader和FileWriter实现文本文件的复制 --- 技术搬运工(尚硅谷)
摘要: @Test public void test4(){ FileReader fr = null; FileWriter fw = null; try { fr = new FileReader("hello.txt"); fw = new FileWriter("hello1.txt"); char
阅读全文
posted @ 2019-10-18 16:57 地中有山
阅读(268)
评论(0)
推荐(0)
编辑
IO流7 --- FileWriter写出数据的操作 --- 技术搬运工(尚硅谷)
摘要: FileWriter字符输出 @Test public void test3(){ File file = new File("hello1.txt"); FileWriter fw = null; try { //自动创建文件。默认false,覆盖写;true追加写 fw = new FileWr
阅读全文
posted @ 2019-10-18 16:55 地中有山
阅读(172)
评论(0)
推荐(0)
编辑
IO流6 --- FileReader中使用read(char[] cbuf)读入数据 --- 技术搬运工(尚硅谷)
摘要: FileReader 字符输入流 @Test public void test2(){ File file = new File("hello.txt"); FileReader fr = null; try { fr = new FileReader(file); char[] cbuf = ne
阅读全文
posted @ 2019-10-18 16:51 地中有山
阅读(536)
评论(0)
推荐(0)
编辑
IO流5 --- FileReader读入数据的基本操作 --- 技术搬运工(尚硅谷)
摘要: FileReader 字符输入流 @Test public void test1(){ File file = new File("hello.txt"); FileReader fr = null; try { fr = new FileReader(file); //返回读取的内容 int da
阅读全文
posted @ 2019-10-18 16:50 地中有山
阅读(164)
评论(0)
推荐(0)
编辑
IO流4 --- IO流体系 --- 技术搬运工(尚硅谷)
摘要:
阅读全文
posted @ 2019-10-18 16:48 地中有山
阅读(101)
评论(0)
推荐(0)
编辑
上一页
1
···
9
10
11
12
13
14
下一页
公告