Class ProgressMonitoredInputStream

    • Constructor Detail

      • ProgressMonitoredInputStream

        public ProgressMonitoredInputStream​(InputStream inputStream,
                                            BytesProgressWatcher progressWatcher)
        Construts the input stream around an underlying stream and sends notification messages to a progress watcher when bytes are read from the stream.
        Parameters:
        inputStream - the input stream to wrap, whose byte transfer count will be monitored.
        progressWatcher - a watcher object that stores information about the bytes read from a stream, and allows calculations to be perfomed using this information.