You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -60,8 +60,8 @@ More information can be found on the [Apache Commons IO homepage](https://common
60
60
The [Javadoc](https://commons.apache.org/proper/commons-io/apidocs) can be browsed.
61
61
Questions related to the usage of Apache Commons IO should be posted to the [user mailing list][ml].
62
62
63
-
Where can I get the latest release?
64
-
-----------------------------------
63
+
Getting the latest release
64
+
--------------------------
65
65
You can download source and binaries from our [download page](https://commons.apache.org/proper/commons-io/download_io.cgi).
66
66
67
67
Alternatively, you can pull it from the central Maven repositories:
@@ -70,17 +70,25 @@ Alternatively, you can pull it from the central Maven repositories:
70
70
<dependency>
71
71
<groupId>commons-io</groupId>
72
72
<artifactId>commons-io</artifactId>
73
-
<version>2.14.0</version>
73
+
<version>2.15.0</version>
74
74
</dependency>
75
75
```
76
76
77
+
Building
78
+
--------
79
+
80
+
Building requires a Java JDK and [Apache Maven](https://maven.apache.org/).
81
+
The required Java version is found in the `pom.xml` as the `maven.compiler.source` property.
82
+
83
+
From a command shell, run `mvn` without arguments to invoke the default Maven goal to run all tests and checks.
84
+
77
85
Contributing
78
86
------------
79
87
80
88
We accept Pull Requests via GitHub. The [developer mailing list](https://commons.apache.org/mail-lists.html) is the main channel of communication for contributors.
81
89
There are some guidelines which will make applying PRs easier for us:
82
90
+ No tabs! Please use spaces for indentation.
83
-
+ Respect the code style.
91
+
+ Respect the existing code style for each file.
84
92
+ Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
85
93
+ Provide JUnit tests for your changes and make sure your changes don't break any existing tests by running ```mvn```.
86
94
@@ -89,13 +97,13 @@ You can learn more about contributing via GitHub in our [contribution guidelines
89
97
90
98
License
91
99
-------
92
-
This code is under the [Apache License v2](https://www.apache.org/licenses/LICENSE-2.0).
100
+
This code is licensed under the [Apache License v2](https://www.apache.org/licenses/LICENSE-2.0).
93
101
94
102
See the `NOTICE.txt` file for required notices and attributions.
95
103
96
-
Donations
97
-
---------
98
-
You like Apache Commons IO? Then [donate back to the ASF](https://www.apache.org/foundation/contributing.html) to support the development.
104
+
Donating
105
+
--------
106
+
You like Apache Commons IO? Then [donate back to the ASF](https://www.apache.org/foundation/contributing.html) to support development.
file comparators, endian transformation classes, and much more.
13
+
14
+
Java 8 is required.
15
+
16
+
Changes in this version include:
17
+
18
+
New features:
19
+
o Add org.apache.commons.io.channels.FileChannels. Thanks to Gary Gregory.
20
+
o Add RandomAccessFiles#contentEquals(RandomAccessFile, RandomAccessFile). Thanks to Gary Gregory.
21
+
o Add RandomAccessFiles#reset(RandomAccessFile). Thanks to Gary Gregory.
22
+
o Add PathUtilsContentEqualsBenchmark. Thanks to Gary Gregory.
23
+
o Add org.apache.commons.io.StreamIterator. Thanks to Gary Gregory.
24
+
o Add MessageDigestInputStream and deprecate MessageDigestCalculatingInputStream. Thanks to Gary Gregory.
25
+
26
+
Fixed Bugs:
27
+
o IO-810: XmlStreamReader encoding match RE is too strict. Thanks to Laurence Gonsalves.
28
+
o IO-810: Javadoc in FileUtils does not reflect code for thrown exceptions. Thanks to Gregor Dschung, Gary Gregory.
29
+
o IO-812: Javadoc should mention closing Streams based on file resources. Thanks to Adam Rauch, Gary Gregory.
30
+
o IO-811: In tests, Files.walk() direct and indirect callers fail to close the returned Stream. Thanks to Adam Rauch, Gary Gregory.
31
+
o IO-811: FileUtils.listFiles(File, String[], boolean) fails to close its internal Stream. Thanks to Adam Rauch, Gary Gregory.
32
+
o IO-811: FileUtils.iterateFiles(File, String[], boolean) fails to close its internal Stream. Thanks to Adam Rauch, Gary Gregory.
33
+
o IO-811: StreamIterator fails to close its internal Stream. Thanks to Adam Rauch, Gary Gregory.
34
+
o IO-814: Don't throw UncheckedIOException #491. Thanks to Elliotte Rusty Harold, Gary Gregory.
35
+
o IO-414: Don't write a BOM on every (or any) line #492. Thanks to Elliotte Rusty Harold, Gary Gregory.
36
+
o IO-814: RandomAccessFileMode.create(Path) provides a better NullPointerException message. Thanks to Gary Gregory.
37
+
o Improve performance of PathUtils.fileContentEquals(Path, Path, LinkOption[], OpenOption[]) by about 60%, see PathUtilsContentEqualsBenchmark. Thanks to Gary Gregory.
38
+
o Improve performance of PathUtils.fileContentEquals(Path, Path) by about 60%, see PathUtilsContentEqualsBenchmark. Thanks to Gary Gregory.
39
+
o Improve performance of FileUtils.contentEquals(File, File) by about 60%, see PathUtilsContentEqualsBenchmark. Thanks to Gary Gregory.
40
+
o Remove unused test code #494. Thanks to Elliotte Rusty Harold.
41
+
o [Javadoc] IOUtils#contentEquals does not throw NullPointerException #496. Thanks to sebbASF.
42
+
o Fix CodeQL warnings in UnsynchronizedBufferedInputStream: Implicit narrowing conversion in compound assignment. Thanks to Gary Gregory.
43
+
o MessageDigestCalculatingInputStream.MessageDigestMaintainingObserver.MessageDigestMaintainingObserver(MessageDigest) now throws a NullPointerException
44
+
if the MessageDigest is null. Thanks to Gary Gregory.
45
+
o MessageDigestCalculatingInputStream.MessageDigestCalculatingInputStream(InputStream, MessageDigest) now throws a NullPointerException
46
+
if the MessageDigest is null. Thanks to Gary Gregory.
47
+
o IO-816: UnsynchronizedBufferedInputStream.read(byte[], int, int) does not use buffer. Thanks to Andreas Loth, Gary Gregory.
48
+
49
+
Changes:
50
+
o Bump org.apache.commons:commons-parent from 62 to 64. Thanks to Gary Gregory.
51
+
52
+
Compatibility with 2.6:
53
+
Binary compatible: Yes.
54
+
Source compatible: Yes.
55
+
Semantic compatible: Yes.
56
+
57
+
Commons IO 2.9.0 requires Java 8.
58
+
Commons IO 2.8.0 requires Java 8.
59
+
Commons IO 2.7 requires Java 8.
60
+
Commons IO 2.6 requires Java 7.
61
+
Commons IO 2.5 requires Java 6.
62
+
Commons IO 2.4 requires Java 6.
63
+
Commons IO 2.3 requires Java 6.
64
+
Commons IO 2.2 requires Java 5.
65
+
Commons IO 1.4 requires Java 1.3.
66
+
67
+
Historical list of changes: https://commons.apache.org/proper/commons-io/changes-report.html
68
+
69
+
For complete information on Apache Commons IO, including instructions on how to submit bug reports,
70
+
patches, or suggestions for improvement, see the Apache Commons IO website:
0 commit comments