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
// Some badly designed methods - e.g. the Servlet API - overload length
152
152
// such that "-1" means stream finished
153
-
super(inputStream);
154
-
this.maxCount = maxLength;
153
+
this(inputStream, maxCount, true);
155
154
}
156
155
157
156
/**
158
157
* Constructs a new {@link BoundedInputStream} that wraps the given input stream and limits it to a certain size.
159
158
*
160
159
* @param inputStream The wrapped input stream.
161
-
* @param maxLength The maximum number of bytes to return.
160
+
* @param maxCount The maximum number of bytes to return.
162
161
* @param propagateClose {@code true} if calling {@link #close()} propagates to the {@code close()} method of the underlying stream or {@code false} if it
0 commit comments