Package org.jcsp.net2
Class ObjectNetworkMessageFilter.FilterRX
- java.lang.Object
-
- org.jcsp.net2.ObjectNetworkMessageFilter.FilterRX
-
- All Implemented Interfaces:
NetworkMessageFilter.FilterRx
- Enclosing class:
- ObjectNetworkMessageFilter
public static final class ObjectNetworkMessageFilter.FilterRX extends Object implements NetworkMessageFilter.FilterRx
The receiving (decoding) filter for Objects- Author:
- Kevin Chalmers
-
-
Constructor Summary
Constructors Constructor Description FilterRX()
Creates a new incoming object filter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
filterRX(byte[] bytes)
Decodes an incoming byte array, converting it back into an Object
-
-
-
Method Detail
-
filterRX
public Object filterRX(byte[] bytes) throws IOException
Decodes an incoming byte array, converting it back into an Object- Specified by:
filterRX
in interfaceNetworkMessageFilter.FilterRx
- Parameters:
bytes
- The byte representation of the object- Returns:
- The recreated Object
- Throws:
IOException
- Thrown of something goes wrong during the decoding
-
-