Package org.jcsp.net2.bns
Class BNSNetworkMessageFilter.FilterRX
- java.lang.Object
-
- org.jcsp.net2.bns.BNSNetworkMessageFilter.FilterRX
-
- All Implemented Interfaces:
NetworkMessageFilter.FilterRx
- Enclosing class:
- BNSNetworkMessageFilter
static final class BNSNetworkMessageFilter.FilterRX extends java.lang.Object implements NetworkMessageFilter.FilterRx
The filter used to convert an array of bytes back into a BNSMessage
-
-
Constructor Summary
Constructors Constructor Description FilterRX()
Creates a new decoding BNSMessageFilter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
filterRX(byte[] bytes)
Decodes a byte array back into a BNSMessage
-
-
-
Method Detail
-
filterRX
public java.lang.Object filterRX(byte[] bytes) throws java.io.IOException
Decodes a byte array back into a BNSMessage- Specified by:
filterRX
in interfaceNetworkMessageFilter.FilterRx
- Parameters:
bytes
- The bytes to convert back into a BNSMessage- Returns:
- The recreated BNSMessage
- Throws:
java.io.IOException
- Thrown if something goes wrong during the recreation
-
-