Package org.jcsp.net2.bns
Class BNSNetworkMessageFilter.FilterTX
- java.lang.Object
-
- org.jcsp.net2.bns.BNSNetworkMessageFilter.FilterTX
-
- All Implemented Interfaces:
NetworkMessageFilter.FilterTx
- Enclosing class:
- BNSNetworkMessageFilter
static final class BNSNetworkMessageFilter.FilterTX extends java.lang.Object implements NetworkMessageFilter.FilterTx
The encoding filter used to convert a BNSMessage into bytes
-
-
Constructor Summary
Constructors Constructor Description FilterTX()
Creates a new BNSMessage encoding filter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
filterTX(java.lang.Object obj)
Converts a BNSMessage into bytes
-
-
-
Method Detail
-
filterTX
public byte[] filterTX(java.lang.Object obj) throws java.io.IOException
Converts a BNSMessage into bytes- Specified by:
filterTX
in interfaceNetworkMessageFilter.FilterTx
- Parameters:
obj
- A BNSMessage to convert- Returns:
- the byte equivalent of the BNSMessage
- Throws:
java.io.IOException
- Thrown if something goes wrong during the conversion
-
-