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