org.jcsp.net2
Class ObjectNetworkMessageFilter.FilterRX

java.lang.Object
  extended by 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
ObjectNetworkMessageFilter.FilterRX()
          Creates a new incoming object filter
 
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
 

Constructor Detail

ObjectNetworkMessageFilter.FilterRX

public ObjectNetworkMessageFilter.FilterRX()
Creates a new incoming object filter

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 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.