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