All the right cleanup is done when the stream is closed. ProgressMonitor , JOptionPane Fields inherited from class java.io. Constructs an object to monitor the progress of an input stream. Overrides FilterInputStream.read to update the progress monitor after the read. Overrides FilterInputStream.read to update the progress monitor after the read.
Overrides FilterInputStream.reset to reset the progress monitor as well as the stream.
Overrides FilterInputStream.skip to update the progress monitor after the skip. Methods inherited from class java.io. FilterInputStream available , mark , markSupported Methods inherited from class java.lang. Constructs an object to monitor the progress of an input stream. Normally this isn't needed unless you want to do something like change the descriptive text partway through reading the file.