Class CountingInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.ka2ddo.yaac.io.CountingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public final class CountingInputStream extends FilterInputStream
InputStream to count the number of bytes read from the input, so as to drive a progress bar.
Author:
Andrew Pavlin, KA2DDO
  • Constructor Details

    • CountingInputStream

      public CountingInputStream(InputStream in)
      Create a CountingInputStream wrapped around the specified InputStream.
      Parameters:
      in - the InputStream to count.
  • Method Details