Apache Commons IO
Version 2.6
Release Notes
INTRODUCTION:
Apache Commons IO is a package of Java utility classes like java.io.
Classes in this package are considered to be so standard and of such high
reuse as to justify existence in java.io.
The Apache Commons IO library contains utility classes, stream implementations,
file filters, file comparators, endian transformation classes, and much more.
Apache Commons IO 2.6 requires at least Java 7 to build and run.
DEPRECATIONS
============
All closeQuietly overloads in org.apache.commons.io.IOUtils have been
deprecated. Use the try-with-resources statement or handle suppressed
exceptions manually.
The class org.apache.commons.io.FileSystemUtils has been deprecated.
Use equivalent methods in java.nio.file.FileStore instead, e.g.
Files.getFileStore(Paths.get("/home")).getUsableSpace() or iterate over
FileSystems.getDefault().getFileStores().
COMPATIBILITY WITH JAVA 9
==================
The MANIFEST.MF now contains an additional entry:
Automatic-Module-Name: org.apache.commons.io
This should make it possible to use Commons IO 2.6 as a module in the Java 9
module system. For more information see the corresponding issue:
https://issues.apache.org/jira/browse/IO-551
Building Commons IO 2.6 should work out of the box with the latest Java 9
release. Please report any Java 9 related issues at:
https://issues.apache.org/jira/browse/IO
NEW FEATURES
============
o IO-551: Add Automatic-Module-Name MANIFEST entry for Java 9 compatibility.
o IO-367: Add convenience methods for copyToDirectory. Thanks to James Sawle.
o IO-493: Add infinite circular input stream. Thanks to Piotr Turski.
o IO-507: Add a ByteOrderUtils class.
o IO-518: Add ObservableInputStream.
o IO-519: Add MessageDigestCalculatingInputStream.
o IO-513: Add convenience methods for reading class path resources.
Thanks to Behrang Saeedzadeh.
FIXED BUGS
==========
o IO-546: ClosedOutputStream#flush should throw. Thanks to Tomas Celaya.
o IO-550: Documentation issue, fix 404 Javadoc issues in the description page.
Thanks to Jimi Adrian.
o IO-442: Javadoc contradictory for FileFilterUtils.ageFileFilter(cutoff) and
the filter it constructs: AgeFileFilter(cutoff).
Thanks to Simon Robinson.
o IO-534: FileUtilTestCase.testForceDeleteDir() should not delete testDirectory
parent.
o IO-528: Fix Tailer.run race condition runaway logging. Thanks to Dave Moten.
o IO-483: getPrefixLength return -1 if unix file contains colon.
Thanks to Marko Vasic.
o IO-520: FileUtilsTestCase#testContentEqualsIgnoreEOL fails on Windows.
o IO-516: .gitattributes not correctly applied. Thanks to Jason Pyeron.
o IO-515: Allow Specifying Initial Buffer Size of DeferredFileOutputStream.
Thanks to Brett Lounsbury, Gary Gregory.
o IO-512: ThresholdingOutputStream.thresholdReached() results in
FileNotFoundException. Thanks to Ralf Hauser.
o IO-511: After a few unit tests, a few newly created directories not cleaned
completely. Thanks to Ahmet Celik.
o IO-502: Exceptions are suppressed incorrectly when copying files.
Thanks to Christian Schulte.
o IO-503: Update platform requirement to Java 7.
o IO-537: BOMInputStream shouldn't sort array of BOMs in-place.
Thanks to Borys Zibrov.
CHANGES
=======
o IO-553: Make code style of hasBOM() consistent with getBOMCharsetName().
Thanks to Michael Ernst.
o IO-542: FileUtils#readFileToByteArray: optimize reading of files with known
size. Thanks to Ilmars Poikans.
o IO-547: Throw a IllegalArgumentException instead of NullPointerException in
FileSystemUtils.freeSpaceWindows(). Thanks to Nikhil Shinde,
Michael Ernst, Gary Greory.
o IO-506: Deprecate methods FileSystemUtils.freeSpaceKb().
Thanks to Christian Schulte.
o IO-505: Make LineIterator implement Closeable to support try-with-resources
statements. Thanks to Christian Schulte.
o IO-504: Deprecated of all IOUtils.closeQuietly() methods and use
try-with-resources internally. Thanks to Christian Schulte.
REMOVED
=======
o IO-514: Remove org.apache.commons.io.Java7Support.
COMPATIBILITY WITH OLDER VERSIONS
=================================
Compatibility with 2.5:
Binary compatible: Yes.
Source compatible: Yes.
Semantic compatible: Yes.
Compatibility with 2.6 and 1.4:
Binary compatible: Yes.
Source compatible: No, see the rare case in
https://issues.apache.org/jira/browse/IO-318.
Semantic compatible: No, see the rare case in
https://issues.apache.org/jira/browse/IO-318.
Commons IO 2.6 requires JDK 1.7 or later.
Commons IO 2.5 requires JDK 1.6 or later.
Commons IO 2.4 requires JDK 1.6 or later.
Commons IO 2.3 requires JDK 1.6 or later.
Commons IO 2.2 requires JDK 1.5 or later.
Commons IO 1.4 requires JDK 1.3 or later.
==============================================================================
Apache Commons IO Version 2.5
==============================================================================
New features and bug fixes.
Changes in this version include:
New features:
o IO-487: Add ValidatingObjectInputStream for controlled deserialization
o IO-471: Support for additional encodings in ReversedLinesFileReader Thanks to Leandro Reis.
o IO-425: Setter method for threshold on ThresholdingOutputStream Thanks to Craig Swank.
o IO-406: Introduce new class AppendableOutputStream Thanks to Niall Pemberton.
o IO-459: Add WindowsLineEndingInputStream and UnixLineEndingInputStream. Thanks to Kristian Rosenvold.
o IO-457: Add a BoundedReader, a wrapper that can be used to constrain access
to an underlying stream when used with mark/reset -
to avoid overflowing the mark limit of the underlying buffer. Thanks to Kristian Rosenvold.
o IO-426: Add API IOUtils.closeQuietly(Closeable...)
o IO-410: Readfully() That Returns A Byte Array Thanks to Beluga Behr.
o IO-395: Overload IOUtils buffer methods to accept buffer size Thanks to Beluga Behr.
o IO-382: Chunked IO for large arrays.
Added writeChunked(byte[], OutputStream) and writeChunked(char[] Writer)
Added ChunkedOutputStream, ChunkedWriter
o IO-233: Add Methods for Buffering Streams/Writers To IOUtils
Added overloaded buffer() methods - see also IO-330
o IO-330: IOUtils#toBufferedOutputStream/toBufferedWriter to conditionally wrap the output
Added overloaded buffer() methods - see also IO-233
o IO-381: Add FileUtils.copyInputStreamToFile API with option to leave the source open.
See copyInputStreamToFile(final InputStream source, final File destination, boolean closeSource)
o IO-379: CharSequenceInputStream - add tests for available()
Fix code so it really does reflect a minimum available.
o IO-346: Add ByteArrayOutputStream.toInputStream()
o IO-341: A constant for holding the BOM character (U+FEFF)
o IO-361: Add API FileUtils.forceMkdirsParent().
o IO-360: Add API Charsets.requiredCharsets().
o IO-359: Add IOUtils.skip and skipFully(ReadableByteChannel, long). Thanks to yukoba.
o IO-358: Add IOUtils.read and readFully(ReadableByteChannel, ByteBuffer buffer). Thanks to yukoba.
o IO-353: Add API IOUtils.copy(InputStream, OutputStream, int) Thanks to ggregory.
o IO-349: Add API with array offset and length argument to FileUtils.writeByteArrayToFile. Thanks to scop.
o IO-348: Missing information in IllegalArgumentException thrown by org.apache.commons.io.FileUtils#validateListFilesParameters. Thanks to plcstpierre.
o IO-345: Supply a hook method allowing Tailer actively determining stop condition. Thanks to mkresse.
o IO-437: Make IOUtils.EOF public and reuse it in various classes.
Fixed Bugs:
o IO-446: adds an endOfFileReached method to the TailerListener Thanks to Jeffrey Barrus.
o IO-484: FilenameUtils should handle embedded null bytes Thanks to Philippe Arte
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
- 由第三方研发的工具类 - 要使用commons-io工具包,就需要先从第三方下载该工具包 - 在当前项目工程下,导入commons-io工具包(借鉴之前使用过的logback) 导commons-io包步骤: 1. 在idea的项目工程下,创建目录:lib 2. 把commons-io工具包,复制到lib目录下 3. 使用idea,把lib目录下的commons-io工具包,引入到项目中 IOUtils类: 复制单个文件(文件对文件) FileUtils工具类: 复制目录或文件(多个文件) commons-io可以简化IO复制文件的操作
资源详情
资源评论
资源推荐
收起资源包目录
java的IO流的工具包:作用:复制单个文件(文件对文件)/ 复制目录或文件(多个文件) (281个子文件)
stylesheet.css 13KB
index-all.html 601KB
IOUtils.html 366KB
FileUtils.html 289KB
FileFilterUtils.html 100KB
IOFileFilter.html 89KB
FilenameUtils.html 87KB
DirectoryWalker.html 57KB
FileWriterWithEncoding.html 53KB
LockableFileWriter.html 49KB
EndianUtils.html 49KB
Tailer.html 48KB
SwappedDataInputStream.html 47KB
CopyUtils.html 44KB
ValidatingObjectInputStream.html 44KB
XmlStreamReader.html 44KB
WriterOutputStream.html 44KB
overview-tree.html 43KB
ProxyWriter.html 40KB
ReaderInputStream.html 39KB
ByteArrayOutputStream.html 39KB
serialized-form.html 38KB
ObservableInputStream.html 38KB
FileAlterationObserver.html 37KB
BOMInputStream.html 37KB
IOCase.html 36KB
deprecated-list.html 36KB
ProxyReader.html 36KB
NullReader.html 34KB
NullInputStream.html 34KB
ProxyInputStream.html 34KB
ExtensionFileComparator.html 34KB
ClassLoaderObjectInputStream.html 34KB
NameFileComparator.html 34KB
PathFileComparator.html 34KB
StringBuilderWriter.html 33KB
BoundedInputStream.html 32KB
CharSequenceInputStream.html 32KB
DeferredFileOutputStream.html 32KB
IOCase.html 31KB
FileEntry.html 31KB
SizeFileComparator.html 31KB
ThresholdingOutputStream.html 31KB
NullWriter.html 30KB
AndFileFilter.html 30KB
OrFileFilter.html 30KB
Charsets.html 30KB
SuffixFileFilter.html 29KB
PrefixFileFilter.html 29KB
WildcardFileFilter.html 29KB
NameFileFilter.html 29KB
FileCleaner.html 29KB
FileSystemUtils.html 28KB
ProxyOutputStream.html 28KB
MessageDigestCalculatingInputStream.html 27KB
XmlStreamWriter.html 27KB
DirectoryFileComparator.html 27KB
DefaultFileComparator.html 27KB
LastModifiedFileComparator.html 27KB
TeeInputStream.html 27KB
LineIterator.html 25KB
XmlStreamReaderException.html 25KB
MagicNumberFileFilter.html 25KB
CompositeFileComparator.html 25KB
ByteOrderMark.html 25KB
CharSequenceReader.html 25KB
TeeOutputStream.html 24KB
BoundedReader.html 24KB
FileAlterationMonitor.html 24KB
AgeFileFilter.html 24KB
FileCleaningTracker.html 24KB
FileAlterationListenerAdaptor.html 23KB
ReversedLinesFileReader.html 23KB
TaggedIOException.html 23KB
WildcardFilter.html 23KB
BrokenInputStream.html 22KB
CountingInputStream.html 22KB
TaggedInputStream.html 21KB
FileDeleteStrategy.html 21KB
TaggedOutputStream.html 21KB
RegexFileFilter.html 21KB
AutoCloseInputStream.html 21KB
DelegateFileFilter.html 20KB
CountingOutputStream.html 20KB
TailerListener.html 20KB
AbstractFileFilter.html 20KB
BrokenOutputStream.html 20KB
NotFileFilter.html 20KB
CanReadFileFilter.html 19KB
ChunkedWriter.html 19KB
DemuxOutputStream.html 19KB
FalseFileFilter.html 19KB
TrueFileFilter.html 19KB
package-summary.html 19KB
SizeFileFilter.html 19KB
allclasses-frame.html 19KB
DirectoryWalker.CancelException.html 19KB
TailerListenerAdapter.html 18KB
CanWriteFileFilter.html 18KB
DirectoryFileFilter.html 18KB
共 281 条
- 1
- 2
- 3
仅存的一丝安逸
- 粉丝: 1223
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 适用于 Android、Java 和 Kotlin Multiplatform 的现代 I,O 库 .zip
- 高通TWS蓝牙规格书,做HIFI级别的耳机用
- Qt读写Usb设备的数据
- 这个存储库适合初学者从 Scratch 开始学习 JavaScript.zip
- AUTOSAR 4.4.0版本Rte模块标准文档
- 25考研冲刺快速复习经验.pptx
- MATLAB使用教程-初步入门大全
- 该存储库旨在为 Web 上的语言提供新信息 .zip
- 考研冲刺的实用经验与技巧.pptx
- Nvidia GeForce GT 1030-GeForce Studio For Win10&Win11(Win10&Win11 GeForce GT 1030显卡驱动)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0