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 Object
implements NetworkMessageFilter.FilterRx
The filter used to convert a CNSMessage from its byte representation back into an object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteArrayInputStream
The input end to read the message back fromprivate DataInputStream
The data input stream used to read in the parts of the message -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
byteIn
The input end to read the message back from -
dis
The data input stream used to read in the parts of the message
-
-
Constructor Details
-
FilterRX
FilterRX()Creates a new decoding CNSMessage filter
-
-
Method Details
-
filterRX
Decodes the byte equivalent of a CNSMessage- Specified by:
filterRX
in interfaceNetworkMessageFilter.FilterRx
- Parameters:
bytes
- The byte equivalent of a CNSMessage- Returns:
- The recreated CNSMessage
- Throws:
IOException
- Thrown if something goes wrong during the recreation
-