API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. ProgressMonitorInputStream View Source
Author(s)
James Gosling
Since
Version
1.20 11/17/05
Serial
Hierarchy
 Object
      InputStream
          FilterInputStream
              ProgressMonitorInputStream
Implements
Subclasses
Description
public class ProgressMonitorInputStream
  Monitors the progress of reading from some InputStream.
See also:    ProgressMonitor JOptionPane
Constructors
public ProgressMonitorInputStream (Component parentComponent, Object message, InputStream in)
  Constructs an object to monitor the progress of an input stream.
Methods
Hide/Show inherited methods
public int available () throws IOException [Inherited From FilterInputStream]
  Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
public void close () throws IOException [Overrides FilterInputStream]
Overrides FilterInputStream.close to close the progress monitor as well as the stream.
public ProgressMonitor getProgressMonitor ()
  Get the ProgressMonitor object being used by this stream.
publicsynchronized void mark (int readlimit) [Inherited From FilterInputStream]
  Marks the current position in this input stream.
public boolean markSupported () [Inherited From FilterInputStream]
  Tests if this input stream supports the mark and reset methods.
public int read () throws IOException [Overrides FilterInputStream] [Specified in InputStream]
Overrides FilterInputStream.read to update the progress monitor after the read.
public int read (byte[] b) throws IOException [Overrides FilterInputStream]
Overrides FilterInputStream.read to update the progress monitor after the read.
public int read (byte[] b, int off, int len) throws IOException [Overrides FilterInputStream]
Overrides FilterInputStream.read to update the progress monitor after the read.
publicsynchronized void reset () throws IOException [Overrides FilterInputStream]
Overrides FilterInputStream.reset to reset the progress monitor as well as the stream.
public long skip (long n) throws IOException [Overrides FilterInputStream]
Overrides FilterInputStream.skip to update the progress monitor after the skip.
Fields
Hide/Show inherited fields
protectedvolatile InputStream in [Inherited From FilterInputStream]
The input stream to be filtered.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar