Class ByteCountInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class ByteCountInputStream
    extends FilterInputStream
    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.