Secure iNet Factory

com.jscape.inet.nntp
Class NntpProgressEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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
 

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

Secure iNet Factory

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