jnetpcap.filter
Class Filter.Or

java.lang.Object
  extended by jnetpcap.filter.Filter.Or
All Implemented Interfaces:
Filter
Enclosing interface:
Filter

public static class Filter.Or
extends java.lang.Object
implements Filter

A filter used to limit that scope of captures, packet reads from a file or from an IO stream.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface jnetpcap.filter.Filter
Filter.And, Filter.Or
 
Constructor Summary
Filter.Or()
           
 
Method Summary
 boolean execute(java.nio.ByteBuffer buffer, FilterTarget dlt)
          Executes the given filter and returns the result of the evaluation against the buffer.
 void or(Filter left, Filter right)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter.Or

public Filter.Or()
Method Detail

or

public void or(Filter left,
               Filter right)

execute

public boolean execute(java.nio.ByteBuffer buffer,
                       FilterTarget dlt)
Description copied from interface: Filter
Executes the given filter and returns the result of the evaluation against the buffer. True means the filter matched, false means it failed.

Specified by:
execute in interface Filter
Parameters:
buffer - buffer to execute the filter against
dlt - TODO
Returns:
true filter succeeded, false failed