Package sun.net

Class ProgressEvent

  • All Implemented Interfaces:
    Serializable

    public class ProgressEvent
    extends EventObject
    ProgressEvent represents an progress event in monitering network input stream.
    See Also:
    Serialized Form
    • Method Detail

      • getURL

        public URL getURL()
        Return URL related to the progress.
      • getMethod

        public String getMethod()
        Return method associated with URL.
      • getContentType

        public String getContentType()
        Return content type of the URL.
      • getProgress

        public long getProgress()
        Return current progress value.
      • getExpected

        public long getExpected()
        Return expected maximum progress value; -1 if expected is unknown.
      • toString

        public String toString()
        Description copied from class: EventObject
        Returns a String representation of this EventObject.
        Overrides:
        toString in class EventObject
        Returns:
        A a String representation of this EventObject.