org.sapia.ubik.net.mplex
Class PositiveStreamSelector

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

public class PositiveStreamSelector
extends java.lang.Object
implements StreamSelector

This is an implementation of a selector that always return true.

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
PositiveStreamSelector()
          Creates a new PositiveStreamSelector 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

PositiveStreamSelector

public PositiveStreamSelector()
Creates a new PositiveStreamSelector 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.