Class LoggingCountingOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.io.output.ProxyOutputStream
org.apache.commons.io.output.CountingOutputStream
com.isomorphic.maven.util.LoggingCountingOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class LoggingCountingOutputStream
extends org.apache.commons.io.output.CountingOutputStream
Since:
2014-02-17 09:04
Author:
Daniel Johansson
  • Constructor Details

    • LoggingCountingOutputStream

      public LoggingCountingOutputStream​(OutputStream out, long expectedByteCount)
      Constructs a new CountingOutputStream.
      Parameters:
      out - the OutputStream to write to
      expectedByteCount - the number of bytes expected in the stream
  • Method Details

    • afterWrite

      protected void afterWrite​(int bytesWritten) throws IOException
      Overrides:
      afterWrite in class org.apache.commons.io.output.ProxyOutputStream
      Throws:
      IOException