Secure iNet Factory

com.jscape.inet.bsd
Class BsdBytesTransmittedEvent

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

public class BsdBytesTransmittedEvent
extends java.util.EventObject

Fired from InputReader and OutputWriter when data is transmitted down the stream.

See Also:
Serialized Form

Constructor Summary
BsdBytesTransmittedEvent(java.lang.Object source, long total, int bytes)
          Creates BsdBytesTransmittedEvent.
 
Method Summary
 long getBytes()
          Gets number of bytes sent during last write.
 long getTotal()
          Gets Total number of bytes transmitted since the connection was established.
 
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

BsdBytesTransmittedEvent

public BsdBytesTransmittedEvent(java.lang.Object source,
                                long total,
                                int bytes)
Creates BsdBytesTransmittedEvent.

Parameters:
source - the source of the event
total - Total number of bytes transmitted since the connection was established
bytes - number of bytes sent during last write.
Method Detail

getTotal

public long getTotal()
Gets Total number of bytes transmitted since the connection was established.

Returns:
total

getBytes

public long getBytes()
Gets number of bytes sent during last write.

Returns:
bytes

Secure iNet Factory

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