Secure iNet Factory

com.jscape.inet.bsd
Class BsdBytesReceivedEvent

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

public class BsdBytesReceivedEvent
extends java.util.EventObject

Fired from InputReader and OutputWriter when data is received from remote host.

See Also:
Serialized Form

Constructor Summary
BsdBytesReceivedEvent(java.lang.Object source, long total, int bytes)
          Creates BsdBytesReceivedEvent.
 
Method Summary
 long getBytes()
          Gets number of bytes received during last read.
 long getTotal()
          Gets Total number of bytes received 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

BsdBytesReceivedEvent

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

Parameters:
source - the source of the event
total - Total number of bytes received since the connection was established
bytes - Number of bytes received during last read.
Method Detail

getTotal

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

Returns:
total

getBytes

public long getBytes()
Gets number of bytes received during last read.

Returns:
bytes

Secure iNet Factory

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