javaKit

java.io  流操作

  • 子节流 InputStream/OutputStream  
  • 字节文件操作流  FileInputStream()/FileOutputStream()
  • 字节缓冲流 BufferedInputStream()/BufferedOutputStream()  提高效率
  • read()/write()
  • 字符转换流 InputStreamReader()/OutputStreamWriter()  用于指定编码
  • InputStream inStream = new FileInputStream(imageFile);
  • ImageIO.read(bis);
  • ImageIO.write(bm, type, bos);
  • // 生成字符缓冲对象
  • BufferedReader in = new BufferedReader(new InputStreamReader(server.getInputStream(), "GBK"));
//读取f盘下的一个视频文件到项目中:文件大小29.5 MB
FileInputStream inputStream = new FileInputStream("f://滑板//HEEL_FLIP.mp4");
BufferedInputStream bis = new BufferedInputStream(inputStream);
FileOutputStream outputStream = new FileOutputStream("HEEL_FLIP.mp4");
BufferedOutputStream bos = new BufferedOutputStream(outputStream);
int len;
byte[] bs = new byte[1024];
// 开始时间
long begin = System.currentTimeMillis();
while ((len = bis.read(bs)) != -1) {
	bos.write(bs, 0, len);
}
// 用时毫秒
System.out.println(System.currentTimeMillis() - begin);// 78

bis.close();
bos.close();

 

java.util 集合

java.awt  ui组件


https://www.jianshu.com/p/eeba48f1e563  fastJson jsonCode

https://www.cnblogs.com/shuaiguoguo/p/8883862.html  java.io  流操作

https://www.jianshu.com/p/4bb01e139cda  java.utl 集合

https://www.jianshu.com/p/9167d252657a  java.awt  图像处理

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值