Package org.jcsp.net2

Interface NetworkMessageFilter.FilterTx

All Known Implementing Classes:
BNSNetworkMessageFilter.FilterTX, CNSNetworkMessageFilter.FilterTX, CodeLoadingChannelFilter.FilterTX, ObjectNetworkMessageFilter.FilterTX, RawNetworkMessageFilter.FilterTX
Enclosing class:
NetworkMessageFilter

public static interface NetworkMessageFilter.FilterTx
The filter used to encode an outgoing message
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Encodes an object into an array of bytes for sending
  • Method Details

    • filterTX

      byte[] filterTX(Object obj) throws IOException
      Encodes an object into an array of bytes for sending
      Parameters:
      obj - The object to convert into bytes
      Returns:
      The byte array representation of the Object
      Throws:
      IOException - Thrown if something goes wrong during the encoding