????
org.apache.commons.io.output.ThresholdingOutputStream
??ThresholdingOutputStream????
???
??
This package provides implementations of output classes, such as
OutputStream
and Writer
.-
org.apache.commons.io.output?ThresholdingOutputStream???
?????????class
An output stream which will retain data in memory until a specified threshold is reached, and only then commit it to disk.???????ThresholdingOutputStream?org.apache.commons.io.output???????????????ThresholdingOutputStream
(int threshold, IOConsumer<ThresholdingOutputStream> thresholdConsumer, IOFunction<ThresholdingOutputStream, OutputStream> outputStreamGetter) Constructs an instance of this class which will trigger an event at the specified threshold.ThresholdingOutputStream
(int threshold, IOConsumer<ThresholdingOutputStream> thresholdConsumer, IOFunction<ThresholdingOutputStream, OutputStream> outputStreamGetter) Constructs an instance of this class which will trigger an event at the specified threshold.