Package org.jcsp.net2
Class ObjectNetworkMessageFilter.FilterTX
- java.lang.Object
-
- org.jcsp.net2.ObjectNetworkMessageFilter.FilterTX
-
- All Implemented Interfaces:
NetworkMessageFilter.FilterTx
- Enclosing class:
- ObjectNetworkMessageFilter
public static final class ObjectNetworkMessageFilter.FilterTX extends Object implements NetworkMessageFilter.FilterTx
The sending (encoding) filter for Object channels- Author:
- Kevin Chalmers
-
-
Constructor Summary
Constructors Constructor Description FilterTX()
Creates a new encoding object filter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
filterTX(Object obj)
Encodes an object into bytes by using Object serialization
-
-
-
Method Detail
-
filterTX
public byte[] filterTX(Object obj) throws IOException
Encodes an object into bytes by using Object serialization- Specified by:
filterTX
in interfaceNetworkMessageFilter.FilterTx
- Parameters:
obj
- The Object to serialize- Returns:
- The byte array equivalent of the object
- Throws:
IOException
- Thrown if something goes wrong during the serialization
-
-