public class

ProgressMonitor

extends Object
java.lang.Object
   ↳ sun.net.ProgressMonitor

Class Overview

ProgressMonitor is a class for monitoring progress in network input stream.

Summary

Public Constructors
ProgressMonitor()
Public Methods
void addProgressListener(ProgressListener l)
Add progress listener in progress monitor.
synchronized static ProgressMonitor getDefault()
Return default ProgressMonitor.
ArrayList<ProgressSource> getProgressSources()
Return a snapshot of the ProgressSource list
synchronized int getProgressUpdateThreshold()
Return update notification threshold
void registerSource(ProgressSource pi)
Register progress source when progress is began.
void removeProgressListener(ProgressListener l)
Remove progress listener from progress monitor.
synchronized static void setDefault(ProgressMonitor m)
Change default ProgressMonitor implementation.
synchronized static void setMeteringPolicy(ProgressMeteringPolicy policy)
Change progress metering policy.
boolean shouldMeterInput(URL url, String method)
Return true if metering should be turned on for a particular URL input stream.
void unregisterSource(ProgressSource pi)
Unregister progress source when progress is finished.
void updateProgress(ProgressSource pi)
Progress source is updated.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProgressMonitor ()

Public Methods

public void addProgressListener (ProgressListener l)

Add progress listener in progress monitor.

public static synchronized ProgressMonitor getDefault ()

Return default ProgressMonitor.

public ArrayList<ProgressSource> getProgressSources ()

Return a snapshot of the ProgressSource list

public synchronized int getProgressUpdateThreshold ()

Return update notification threshold

public void registerSource (ProgressSource pi)

Register progress source when progress is began.

public void removeProgressListener (ProgressListener l)

Remove progress listener from progress monitor.

public static synchronized void setDefault (ProgressMonitor m)

Change default ProgressMonitor implementation.

public static synchronized void setMeteringPolicy (ProgressMeteringPolicy policy)

Change progress metering policy.

public boolean shouldMeterInput (URL url, String method)

Return true if metering should be turned on for a particular URL input stream.

public void unregisterSource (ProgressSource pi)

Unregister progress source when progress is finished.

public void updateProgress (ProgressSource pi)

Progress source is updated.