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
Method Summary |
byte[] |
filterTX(Object obj)
Encodes an object into bytes by using Object serialization |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectNetworkMessageFilter.FilterTX
public ObjectNetworkMessageFilter.FilterTX()
- Creates a new encoding object filter
filterTX
public byte[] filterTX(Object obj)
throws IOException
- Encodes an object into bytes by using Object serialization
- Specified by:
filterTX
in interface NetworkMessageFilter.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
Copyright © 1996-2012. All Rights Reserved.