随笔分类 -  JAVA_IO

摘要:ByteArrayOutputStream 内部包含了一个缓冲区,缓冲区会随着数据的不断写入而自动增长,俗称内存流。首先看一下俩个属性,buf是内部缓冲区,count是记录写入了多少个字节。protected byte buf[];protected int count;这个方法会在每次写入前都调用... 阅读全文
posted @ 2014-11-14 13:58 大新博客 阅读(464) 评论(0) 推荐(0) 编辑
摘要:压缩文件 public static void main(String[] args) throws IOException { String filePath = "E:\\技术部员工工作"; ZipOutputStream outputStream = new ... 阅读全文
posted @ 2014-09-18 11:19 大新博客 阅读(480) 评论(0) 推荐(0) 编辑
摘要:ByteArrayInputStream源码分析 阅读全文
posted @ 2014-06-06 16:43 大新博客 阅读(961) 评论(0) 推荐(0) 编辑
摘要:BufferedOutputStream源码分析 阅读全文
posted @ 2014-06-06 11:39 大新博客 阅读(590) 评论(0) 推荐(0) 编辑
摘要:BufferedInputStream源码分析 阅读全文
posted @ 2014-06-05 22:42 大新博客 阅读(1946) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示