Skip to content

Commit 1227f20

Browse files
committed
Javadoc
1 parent 86119d3 commit 1227f20

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/org/apache/commons/io/input/BoundedInputStream.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@
7373
* .get();
7474
* }
7575
* </pre>
76-
* <h2>Listening for the max count reached</h2>
76+
* <h2>Listening for the maximum count reached</h2>
7777
* <pre>{@code
7878
* BoundedInputStream s = BoundedInputStream.builder()
7979
* .setPath(Paths.get("MyFile.xml"))
8080
* .setMaxCount(1024)
81-
* .setOnMaxCount((max, count) -> System.out.printf("Max count %,d reached with a last read count of %,d%n", max, count))
81+
* .setOnMaxCount((max, count) -> System.out.printf("Maximum count %,d reached with a last read count of %,d%n", max, count))
8282
* .get();
8383
* }
8484
* </pre>
@@ -98,7 +98,7 @@ abstract static class AbstractBuilder<T extends AbstractBuilder<T>> extends Prox
9898
/** The current count of bytes counted. */
9999
private long count;
100100

101-
/** The max count of bytes to read. */
101+
/** The maximum count of bytes to read. */
102102
private long maxCount = EOF;
103103

104104
private IOBiConsumer<Long, Long> onMaxCount = IOBiConsumer.noop();
@@ -156,7 +156,7 @@ public T setMaxCount(final long maxCount) {
156156
/**
157157
* Sets the default {@link BoundedInputStream#onMaxLength(long, long)} behavior, {@code null} resets to a NOOP.
158158
* <p>
159-
* The first Long is the max count of bytes to read. The second Long is the count of bytes read.
159+
* The first Long is the number of bytes remaining to read before the maximum is reached count of bytes to read. The second Long is the count of bytes read.
160160
* </p>
161161
* <p>
162162
* This does <em>not</em> override a {@code BoundedInputStream} subclass' implementation of the {@link BoundedInputStream#onMaxLength(long, long)}
@@ -299,7 +299,7 @@ public static Builder builder() {
299299
/** The current mark. */
300300
private long mark;
301301

302-
/** The max count of bytes to read. */
302+
/** The maximum count of bytes to read. */
303303
private final long maxCount;
304304

305305
private final IOBiConsumer<Long, Long> onMaxCount;
@@ -410,9 +410,9 @@ public long getMaxCount() {
410410
}
411411

412412
/**
413-
* Gets the max count of bytes to read.
413+
* Gets the maximum count of bytes to read.
414414
*
415-
* @return The max count of bytes to read.
415+
* @return The maximum count of bytes to read.
416416
* @since 2.12.0
417417
* @deprecated Use {@link #getMaxCount()}.
418418
*/
@@ -479,7 +479,7 @@ public boolean markSupported() {
479479
* Delegates to the consumer set in {@link Builder#setOnMaxCount(IOBiConsumer)}.
480480
* </p>
481481
*
482-
* @param max The max count of bytes to read.
482+
* @param max The maximum count of bytes to read.
483483
* @param count The count of bytes read.
484484
* @throws IOException Subclasses may throw.
485485
* @since 2.12.0

0 commit comments

Comments
 (0)