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
Method Summary |
Object |
filterRX(byte[] bytes)
Decodes an incoming byte array, converting it back into an Object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectNetworkMessageFilter.FilterRX
public ObjectNetworkMessageFilter.FilterRX()
- Creates a new incoming object filter
filterRX
public Object filterRX(byte[] bytes)
throws IOException
- Decodes an incoming byte array, converting it back into an Object
- Specified by:
filterRX
in interface NetworkMessageFilter.FilterRx
- Parameters:
bytes
- The byte representation of the object
- Returns:
- The recreated Object
- Throws:
IOException
- Thrown of something goes wrong during the decoding
Copyright © 1996-2012. All Rights Reserved.