Package | Description |
---|---|
org.apache.commons.io.output |
This package provides implementations of output classes, such as
OutputStream and Writer . |
Modifier and Type | Class and Description |
---|---|
class |
DeferredFileOutputStream
An output stream which will retain data in memory until a specified threshold is reached, and only then commit it to
disk.
|
Modifier and Type | Field and Description |
---|---|
private static IOFunction<ThresholdingOutputStream,java.io.OutputStream> |
ThresholdingOutputStream.NOOP_OS_GETTER
Noop output stream getter function.
|
private IOFunction<ThresholdingOutputStream,java.io.OutputStream> |
ThresholdingOutputStream.outputStreamGetter
Gets the output stream.
|
private IOConsumer<ThresholdingOutputStream> |
ThresholdingOutputStream.thresholdConsumer
Accepts reaching the threshold.
|
Constructor and Description |
---|
ThresholdingOutputStream(int threshold,
IOConsumer<ThresholdingOutputStream> thresholdConsumer,
IOFunction<ThresholdingOutputStream,java.io.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,java.io.OutputStream> outputStreamGetter)
Constructs an instance of this class which will trigger an event at the specified threshold.
|