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 |
NntpProgressEvent(java.lang.Object source,
int progress)
Construct a NntpProgressEvent object. |
Method Summary |
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 |
NntpProgressEvent
public NntpProgressEvent(java.lang.Object source,
int progress)
- Construct a NntpProgressEvent object.
- Parameters:
source
- the source of the eventprogress
- the number of groups or headers processes
getProgress
public int getProgress()
- Gets number of groups or headers processed.
- Returns:
- number processed
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved