- 268
- 0
- 约1.76万字
- 约 9页
- 2017-06-06 发布于河南
- 举报
Java-IO与文件读写-使用Apache-commons-io包提高读写效率
【Java基础专题】IO与文件读写使用Apache commons io包提高读写效率
【⼀】Apache commons IO简介
首先贴⼀段Apac he commons IO官网上的介绍,来 这个著名的开源包有⼀个基本的了解:
Commons IO is a library of ut ilit ies to assist wit h developing IO funct ionality. T here are four main areas
inc luded:
●Ut ility c lasses wit h stat ic met hods to perform common tasks
●Filters various implementat ions of file filters
●Comparators various implementat ions of java.ut il.Comparator for files
●St reams useful st ream, reader and writer implementat ions
Packages
This package defines utility classes for
mons.io working with streams, readers, writers
and files.
This package provides various Comparator
parator
implementations for Files.
This package defines an interface
mons.io.filefilter (IOFileFilter) that combines both
FileFilter and FilenameFilter.
This package provides implementations
mons.io.input of input classes, such as InputStream and
Reader.
mons.io.output This
【二】ons.io.input包介绍
这个包针 SUN JDK IO包进行了扩展,实现了⼀些功能简单的IO类,主要包括了 字节/字符输入流接口的实现
这个包针 java.io.InputSt ream和Reader进行了扩展,其中比较实用的有以下几个:
●AutoCloseInputStream
Proxy stream that closes and discards the underlying stream as soon as the end of input has been
reached or when the stream is explicitly closed. Not even a reference to the underlying stream is
kept after it has been closed, so any allocated in-memory buffers can be freed even if the client
application still keeps a reference to the proxy stream
This class is typically used to release any resourc
您可能关注的文档
最近下载
- 2025年普通高等学校招生全国统一考试(黑吉辽蒙)化学含答案.docx VIP
- 蒂森电梯MC2电气原理图纸标注.pdf
- XCT80L6_1汽车起重机技术规格书.pdf VIP
- 索尼SW7600GR中文说明书.pdf
- 2026年时事政治测试题库100道附参考答案(完整版).docx VIP
- 儿科抢救药品临床应用与管理.pptx VIP
- 河北广谋新材料科技有限公司年产600万平方米复合革及隔音布、400万平方米新型复合网项目环境影响报告表.docx VIP
- 部编版语文五年级下册第七单元教材解读大单元集体备课.pptx VIP
- 部编版语文五年级下册第六单元教材解读大单元集体备课.pptx VIP
- 部编版语文五年级下册第五单元教材解读大单元集体备课.pptx VIP
原创力文档

文档评论(0)