Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.3
-
None
-
Any
Description
please add a protected reset() method to ThresholdingOutputStream that will reset the byteCount and thresholdExceeded values:
protected void reset()
The order of operations for the base checkThreshold(int) method will need to be changed to allow reset() to be properly called from thresholdReached():
protected void checkThreshold(int count) throws IOException
{
if (!thresholdExceeded && (written + count > threshold))
}