Package com.isomorphic.maven.util
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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LoggingCountingOutputStream(OutputStream out, long expectedByteCount)Constructs a new CountingOutputStream. -
Method Summary
Modifier and Type Method Description protected voidafterWrite(int bytesWritten)Methods inherited from class org.apache.commons.io.output.CountingOutputStream
beforeWrite, getByteCount, getCount, resetByteCount, resetCount
-
Constructor Details
-
LoggingCountingOutputStream
Constructs a new CountingOutputStream.- Parameters:
out- the OutputStream to write toexpectedByteCount- the number of bytes expected in the stream
-
-
Method Details
-
afterWrite
- Overrides:
afterWritein classorg.apache.commons.io.output.ProxyOutputStream- Throws:
IOException
-