Class HardThresholdingOutputStream

java.lang.Object
java.io.OutputStream
org.apache.commons.io.output.ThresholdingOutputStream
org.broadinstitute.hellbender.utils.io.HardThresholdingOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public abstract class HardThresholdingOutputStream extends org.apache.commons.io.output.ThresholdingOutputStream
An output stream which stops at the threshold instead of potentially triggering early.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(byte[] b)
     
    void
    write(byte[] b, int off, int len)
     

    Methods inherited from class org.apache.commons.io.output.ThresholdingOutputStream

    checkThreshold, close, flush, getByteCount, getStream, getThreshold, isThresholdExceeded, resetByteCount, setByteCount, thresholdReached, write

    Methods inherited from class java.io.OutputStream

    nullOutputStream

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HardThresholdingOutputStream

      protected HardThresholdingOutputStream(int threshold)
  • Method Details

    • write

      public void write(byte[] b) throws IOException
      Overrides:
      write in class org.apache.commons.io.output.ThresholdingOutputStream
      Throws:
      IOException
    • write

      public void write(byte[] b, int off, int len) throws IOException
      Overrides:
      write in class org.apache.commons.io.output.ThresholdingOutputStream
      Throws:
      IOException