commit | 8159b8f98d0d707cb17cb3d4cbbd40cafc061cec | [log] [tgz] |
---|---|---|
author | rproserpio <48475312+rproserpio@users.noreply.github.com> | Fri Apr 05 01:47:51 2024 +0200 |
committer | GitHub <noreply@github.com> | Thu Apr 04 19:47:51 2024 -0400 |
tree | c7e6b17aead2b1f1d072f11657e9a966c16ea4c7 | |
parent | 0194dcc6f280949bb44b20696cf143102f873064 [diff] |
ThresholdingOutputStream: a negative threshold should behave like a zero threshold and trigger the event on the first write (#609) * add failing test for negative threshold * revert [IO-405] A negative threshold should behave like a threshold of 0. Until the first write the threshold is not reached actually, then the callback is called. * fix typo in comment * if the event has not been triggered, thresholdExceeded should be false. * a negative threshold should behave like a zero behavior. revert other changes * remove stale comment --------- Co-authored-by: r.proserpio <r.proserpio>
The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.
More information can be found on the Apache Commons IO homepage. The Javadoc can be browsed. Questions related to the usage of Apache Commons IO should be posted to the user mailing list.
You can download source and binaries from our download page.
Alternatively, you can pull it from the central Maven repositories:
<dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.16.1</version> </dependency>
Building requires a Java JDK and Apache Maven. The required Java version is found in the pom.xml
as the maven.compiler.source
property.
From a command shell, run mvn
without arguments to invoke the default Maven goal to run all tests and checks.
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
mvn
.If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.
This code is licensed under the Apache License v2.
See the NOTICE.txt
file for required notices and attributions.
You like Apache Commons IO? Then donate back to the ASF to support development.
Please see the list of components