com.jscape.inet.bsd

## Class BsdBytesReceivedEvent

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

    Constructors
    Constructor and Description
    `BsdBytesReceivedEvent(java.lang.Object source, long total, int bytes)` Creates BsdBytesReceivedEvent.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

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