Class ThresholdingOutputStream

java.lang.Object
java.io.OutputStream
org.subethamail.smtp.io.ThresholdingOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Direct Known Subclasses:
DeferredFileOutputStream

public abstract class ThresholdingOutputStream extends OutputStream
This is an OutputStream wrapper which takes notice when a threshold (number of bytes) is about to be written. This can be used to limit output data, swap writers, etc.
Author:
Jeff Schnitzer
  • Field Details

  • Constructor Details

    • ThresholdingOutputStream

      public ThresholdingOutputStream(OutputStream base, int thresholdBytes)
  • Method Details