Secure iNet Factory

com.jscape.inet.pop
Class PopMessageProgressEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jscape.inet.pop.PopMessageProgressEvent
All Implemented Interfaces:
java.io.Serializable

public class PopMessageProgressEvent
extends java.util.EventObject

Fired frequently during the progress of downloading a message from POP server.

See Also:
Serialized Form

Constructor Summary
PopMessageProgressEvent(java.lang.Object source, int msg, long bytes, long totalBytes)
          Creates PopMessageProgressEvent.
 
Method Summary
 long getBytes()
          Gets number of bytes transferred for message so far.
 int getMessageIndex()
          Gets the corresponding message index for this event.
 long getTotalBytes()
          Gets total message size in bytes.
 
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

PopMessageProgressEvent

public PopMessageProgressEvent(java.lang.Object source,
                               int msg,
                               long bytes,
                               long totalBytes)
Creates PopMessageProgressEvent.

Parameters:
source - the source of the event
msg - the message index for this event
bytes - the total number of bytes transferred so far
totalBytes - the total size of message in bytes
Method Detail

getBytes

public long getBytes()
Gets number of bytes transferred for message so far.

Returns:
number of bytes transferred

getTotalBytes

public long getTotalBytes()
Gets total message size in bytes.

Returns:
total size of message in bytes

getMessageIndex

public int getMessageIndex()
Gets the corresponding message index for this event.

Returns:
the message index

Secure iNet Factory

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