jnetpcap.filter
Class Filter.And

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

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

Takes two filters (left and right) and does an AND logical operation after evaluating each of the filters.

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.And(Filter left, Filter right)
           
 
Method Summary
 boolean execute(java.nio.ByteBuffer buffer, FilterTarget dlt)
          Executes the given filter and returns the result of the evaluation against the buffer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter.And

public Filter.And(Filter left,
                  Filter right)
Method Detail

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