public class

ProgressEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ sun.net.ProgressEvent

Class Overview

ProgressEvent represents an progress event in monitering network input stream.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
ProgressEvent(ProgressSource source, URL url, String method, String contentType, ProgressSource.State state, int progress, int expected)
Construct a ProgressEvent object.
Public Methods
String getContentType()
Return content type of the URL.
int getExpected()
Return expected maximum progress value; -1 if expected is unknown.
String getMethod()
Return method associated with URL.
int getProgress()
Return current progress value.
ProgressSource.State getState()
Return state.
URL getURL()
Return URL related to the progress.
String toString()
Returns a String representation of this EventObject.
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public ProgressEvent (ProgressSource source, URL url, String method, String contentType, ProgressSource.State state, int progress, int expected)

Construct a ProgressEvent object.

Public Methods

public String getContentType ()

Return content type of the URL.

public int getExpected ()

Return expected maximum progress value; -1 if expected is unknown.

public String getMethod ()

Return method associated with URL.

public int getProgress ()

Return current progress value.

public ProgressSource.State getState ()

Return state.

public URL getURL ()

Return URL related to the progress.

public String toString ()

Returns a String representation of this EventObject.

Returns
  • A a String representation of this EventObject.