Class ByteCountInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.aoapps.hodgepodge.io.ByteCountInputStream
All Implemented Interfaces:
NoClose, Closeable, AutoCloseable

public class ByteCountInputStream extends FilterInputStream implements NoClose
Wraps an InputStream to count the number of bytes transferred. Does not count bytes skipped. The counter is not synchronized. Any necessary synchronization should be externally applied.
Author:
AO Industries, Inc.