org.sapia.ubik.net.mplex
Class ObjectStreamSelector

java.lang.Object
  extended by org.sapia.ubik.net.mplex.ObjectStreamSelector
All Implemented Interfaces:
StreamSelector

public class ObjectStreamSelector
extends java.lang.Object
implements StreamSelector

Implements the logic to select a stream of serialized Java objects.

Author:
Jean-Cedric Desrochers
Copyright:
Copyright © 2002-2004 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
ObjectStreamSelector()
          Creates a new ObjectStreamSelector instance.
 
Method Summary
 boolean selectStream(byte[] header)
          Selects or not a stream by analyzing the header of the stream passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectStreamSelector

public ObjectStreamSelector()
Creates a new ObjectStreamSelector instance.

Method Detail

selectStream

public boolean selectStream(byte[] header)
Selects or not a stream by analyzing the header of the stream passed in.

Specified by:
selectStream in interface StreamSelector
Parameters:
header - The first 64 bytes of the stream.
Returns:
True if the header is accepted by this selector, false otherwise.


Copyright © 2010 Sapia OSS. All Rights Reserved.