com.jscape.inet.nntp

## Class NntpProgressEvent

- java.lang.Object
- - java.util.EventObject
  - - com.jscape.inet.nntp.NntpProgressEvent

- All Implemented Interfaces:
    java.io.Serializable

      public class NntpProgressEvent
      extends java.util.EventObject

  Fired while performing lengthy jobs such as retrieving groups or headers. Since the NNTP protocol often does not allow clients to know in advance how much data there is to retrieve, the getProgress will allways return number of entries processed rather than percentual value.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NntpProgressEvent(java.lang.Object source, int progress)` Construct a NntpProgressEvent object.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getProgress()` Gets number of groups or headers processed.

    - ### Methods inherited from class java.util.EventObject

      `getSource, toString`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### NntpProgressEvent

          public NntpProgressEvent(java.lang.Object source,
                                   int progress)

      Construct a NntpProgressEvent object.
      Parameters:
        `source` - the source of the event
        `progress` - the number of groups or headers processes

  - ### Method Detail

    - #### getProgress

          public int getProgress()

      Gets number of groups or headers processed.
      Returns:
        number processed

Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved