Module id.xfunction

Class ProgressMonitorInputStream

Object
InputStream
ProgressMonitorInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ProgressMonitorInputStream extends InputStream
Allows to monitor InputStream read progress
  • Constructor Details

  • Method Details

    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • getPercentRead

      public int getPercentRead()
      Returns in % total amount of data which was read from the stream already
    • getTotalBytesRead

      public long getTotalBytesRead()
      Number of bytes which was read already
    • getTotalBytes

      public long getTotalBytes()
      Total number of bytes