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-2.6.zip
共280个文件
html:269个
jar:5个
txt:3个
需积分: 15 7 下载量 106 浏览量
2020-06-12
18:05:41
上传
评论
收藏 2.55MB ZIP 举报
温馨提示
这个名字为commons-io-2.6.zip的压缩包中包含commons-io-2.6.jar、commons-io-2.6-javadoc.jar、commons-io-2.6-sources.jar、commons-io-2.6-tests.jar、commons-io-2.6-test-sources.jar
资源推荐
资源详情
资源评论
收起资源包目录
commons-io-2.6.zip (280个子文件)
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
共 280 条
- 1
- 2
- 3
资源评论
今天也要加油鸭~~
- 粉丝: 11
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 开源中件间zookeeper和kafka客户端配置,用于运维人员了解开发人员如何使用代码环节对接zookeeper和kafka
- 离散韦格纳分布Discrete Wigner-Ville Distribution一维数据转换二维图像的方法(Matlab代码和数据)
- 连续小波变换一维数据转换二维图像的方法(Matlab代码和数据)
- 大数据作业hadoop所要的数据pg4300.txt
- 梅尔频谱图一维数据转换二维图像的方法(Matlab代码和数据)
- 微信小程序官方演示.zip
- 时间重分配多同步压缩变换一维数据转换二维图像的方法(Matlab代码和数据)
- 小爱同学LX04官方升级包内置教程
- 实小波变换一维数据转换二维图像的方法(Matlab代码和数据)
- 同步提取变换一维数据转换二维图像的方法(Matlab代码和数据)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功