|
1 | 1 |
|
| 2 | +Apache Commons IO 2.17.0 Release Notes |
| 3 | + |
| 4 | +Introduction |
| 5 | +------------ |
| 6 | + |
| 7 | +The Apache Commons IO library contains utility classes, stream implementations, file filters, |
| 8 | +file comparators, endian transformation classes, and much more. |
| 9 | + |
| 10 | +Java 8 is required. |
| 11 | + |
| 12 | +New features |
| 13 | +------------ |
| 14 | + |
| 15 | +o Add IOIterator.adapt(Iterable). Thanks to Gary Gregory. |
| 16 | +o IO-831: Add getInputStream() for 'https' and 'http' in URIOrigin #630. Thanks to Elliotte Rusty Harold, Thach Le, Gary Gregory. |
| 17 | +o Add IOSupplier.getUnchecked(). Thanks to Gary Gregory. |
| 18 | +o Add CloseShieldInputStream.systemIn(InputStream). Thanks to Gary Gregory. |
| 19 | +o Add NullInputStream.init(). Thanks to Gary Gregory. |
| 20 | +o Add AbstractInputStream and refactor duplicate code. Thanks to Gary Gregory. |
| 21 | +o Add UnsynchronizedReader. Thanks to Gary Gregory. |
| 22 | +o Add UnsynchronizedBufferedReader. Thanks to Gary Gregory. |
| 23 | + |
| 24 | +Fixed Bugs |
| 25 | +---------- |
| 26 | + |
| 27 | +o IO-858: FileUtilsWaitForTest does not test anything useful. |
| 28 | +o Add missing unit tests. Thanks to Gary Gregory. |
| 29 | +o FileUtils.lastModifiedFileTime(File) calls Objects.requireNonNull() on the wrong object. Thanks to Gary Gregory. |
| 30 | +o PathUtils.deleteOnExit(Path) calls Objects.requireNonNull() on the wrong object. Thanks to Gary Gregory. |
| 31 | +o Deprecate LineIterator.nextLine() in favor of next(). Thanks to Gary Gregory. |
| 32 | +o Fix PMD UnnecessaryFullyQualifiedName. Thanks to Gary Gregory. |
| 33 | +o Add test for CircularByteBuffer clear() #620. Thanks to sullis. |
| 34 | +o PathUtils.isPosix(Path, LinkOption...) should return false on null input. Thanks to Gary Gregory. |
| 35 | +o AutoCloseInputStream(InputStream) uses ClosedInputStream.INSTANCE when its input is null. Thanks to Gary Gregory. |
| 36 | +o Avoid NullPointerException in ProxyInputStream.available() when the underlying input stream is null. Thanks to Gary Gregory. |
| 37 | +o Avoid NullPointerException in ProxyInputStream.markSupported() when the underlying input stream is null. Thanks to Gary Gregory. |
| 38 | +o Avoid NullPointerException in ProxyInputStream.mark(int) when the underlying input stream is null. Thanks to Gary Gregory. |
| 39 | +o BufferedFileChannelInputStream.available() returns 0 before any reads. Thanks to Gary Gregory. |
| 40 | +o BufferedFileChannelInputStream.available() should return 0 instead of -1 at the end of the stream. Thanks to Gary Gregory. |
| 41 | +o BufferedFileChannelInputStream.available() should return 0 when the stream is closed instead of throwing an exception. Thanks to Gary Gregory. |
| 42 | +o CharSequenceInputStream.available() should return 0 after the stream is closed. Thanks to Gary Gregory. |
| 43 | +o BoundedInputStream.available() should return 0 when the stream is closed. Thanks to Gary Gregory. |
| 44 | +o CircularInputStream.available() should return 0 when the stream is closed. Thanks to Gary Gregory. |
| 45 | +o InfiniteCircularInputStream.available() should return 0 when the stream is closed. Thanks to Gary Gregory. |
| 46 | +o ChecksumInputStream(InputStream, Checksum, long, long) should fail-fast on null Checksum input. Thanks to Gary Gregory. |
| 47 | +o Deprecate NullInputStream.INSTANCE in favor of constructors. Thanks to Gary Gregory. |
| 48 | +o NullInputStream.available() should return 0 after the stream is closed. Thanks to Gary Gregory. |
| 49 | +o MemoryMappedFileInputStream.available() should return 0 after the stream is closed. Thanks to Gary Gregory. |
| 50 | +o RandomAccessFileInputStream.available() should return 0 after the stream is closed. Thanks to Gary Gregory. |
| 51 | +o ReaderInputStream.available() should return 0 after the stream is closed. Thanks to Gary Gregory. |
| 52 | +o AutoCloseInputStream does not call handleIOException() on close() when the proxied stream throws an IOException. Thanks to Gary Gregory. |
| 53 | +o BoundedInputStream does not call handleIOException() on close() when the proxied stream throws an IOException. Thanks to Gary Gregory. |
| 54 | +o NullInputStream.read(*) should throw IOException when it is closed. Thanks to Gary Gregory. |
| 55 | +o NullInputStream.read(byte[]) should return 0 when the input byte array in length 0. Thanks to Gary Gregory. |
| 56 | +o NullInputStream.read(byte[], int, int) should return 0 when the input byte array in length 0 or requested length is 0. Thanks to Gary Gregory. |
| 57 | +o MarkShieldInputStream.read(*) should throw IOException when it is closed. Thanks to Gary Gregory. |
| 58 | +o Replace deprecated constant FileFileFilter.FILE in Javadoc #657. Thanks to aelaort. |
| 59 | +o Pick up exec-maven-plugin version from parent POM. Thanks to Gary Gregory. |
| 60 | + |
| 61 | +Changes |
| 62 | +------- |
| 63 | + |
| 64 | +o Bump tests commons.bytebuddy.version from 1.14.13 to 1.15.1 #615, #621, #631, #635, #642, #658, #663, #665. Thanks to Dependabot. |
| 65 | +o Bump tests commons-codec:commons-codec from 1.16.1 to 1.17.1 #644. Thanks to Dependabot. |
| 66 | +o Bump org.codehaus.mojo:exec-maven-plugin from 3.2.0 to 3.4.1 #632, #652, #659. Thanks to Dependabot. |
| 67 | +o Bump org.apache.commons:commons-parent from 69 to 74 #628, #637, #649, #661, #664. Thanks to Dependabot. |
| 68 | +o Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0 #645, #653, #666. Thanks to Dependabot. |
| 69 | + |
| 70 | + |
| 71 | +Commons IO 2.7 and up requires Java 8 or above. |
| 72 | +Commons IO 2.6 requires Java 7 or above. |
| 73 | +Commons IO 2.3 through 2.5 requires Java 6 or above. |
| 74 | +Commons IO 2.2 requires Java 5 or above. |
| 75 | +Commons IO 1.4 requires Java 1.3 or above. |
| 76 | + |
| 77 | +Historical list of changes: https://commons.apache.org/proper/commons-io/changes-report.html |
| 78 | + |
| 79 | +For complete information on Apache Commons IO, including instructions on how to submit bug reports, |
| 80 | +patches, or suggestions for improvement, see the Apache Commons IO website: |
| 81 | + |
| 82 | +https://commons.apache.org/proper/commons-io/ |
| 83 | + |
| 84 | +Download page: https://commons.apache.org/proper/commons-io/download_io.cgi |
| 85 | + |
| 86 | +Have fun! |
| 87 | +-Apache Commons Team |
| 88 | + |
| 89 | +------------------------------------------------------------------------------ |
| 90 | + |
| 91 | + |
2 | 92 | Apache Commons IO 2.16.1 Release Notes |
3 | 93 |
|
4 | 94 | Introduction |
|
0 commit comments