commons-io源码阅读心得
2014-06-26 15:34
429 查看
FileCleanTracker: 开启一个守护线程在后台默默的删除文件。
[/b]
View Code
一系列的IO output/input类:
如:CountingInputStream 可以记录输入流读取的字节数;
ByteArrayOutputStream 将输出流的数据写到字节数组中;
CountingOutputStream 记录输出流输出的字节数。
[/b]
File dir = new File("."); FileFilter fileFilter = new WildcardFileFilter("*test*.java~*~"); File[] files = dir.listFiles(fileFilter); for (int i = 0; i < files.length; i++) { System.out.println(files[i]); }
View Code
一系列的IO output/input类:
如:CountingInputStream 可以记录输入流读取的字节数;
ByteArrayOutputStream 将输出流的数据写到字节数组中;
CountingOutputStream 记录输出流输出的字节数。
相关文章推荐
- Struts源码阅读心得之logic:Iterator篇
- Struts源码阅读心得之logic:notPresent篇
- Tomcat源码阅读之底层IO封装(1)InternalNioInputBuffer的分析
- ExecutorService.invokeAny()和ExecutorService.invokeAll()的源码阅读心得
- java源码阅读心得
- Struts源码阅读心得之html:cancel篇
- 【apache-commons】一 io包 它是一个文件和IO流操作的源码通用工具包
- 深入阅读Mina源码(3) ―― Mina之IOAdapter(二)
- 深入阅读Mina源码(3) ―― Mina之IOAdapter(二)
- ArrayBlockingQueue源码阅读心得
- Struts源码阅读心得之bean:message篇
- [hadoop源码阅读][4]-org.apache.hadoop.io.compress系列3-使用压缩
- [hadoop源码阅读][4]-org.apache.hadoop.io.compress系列2-选择编解码器
- 深入阅读Mina源码(3) —— Mina之IOAdapter(一)
- [hadoop源码阅读][4]-org.apache.hadoop.io.compress系列2-选择编解码器
- Struts源码阅读心得之inputForward配置篇
- [hadoop源码阅读][4]-org.apache.hadoop.io.compress系列1-认识解码器/编码器
- hadoop源码阅读][4]-org.apache.hadoop.io
- commons-fileupload源码学习心得
- ArrayUtils 源码阅读有感 :) (commons-lang3)