org.jnetstream.filter.bpf
Class PcapFilter

java.lang.Object
  extended by org.jnetstream.filter.bpf.BPFFilter<ProtocolFilterTarget>
      extended by org.jnetstream.filter.bpf.PcapFilter
All Implemented Interfaces:
Filter<ProtocolFilterTarget>, FilterExpression<BPFProgram>
Direct Known Subclasses:
PcapDebugFilter

public class PcapFilter
extends BPFFilter<ProtocolFilterTarget>
implements FilterExpression<BPFProgram>

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jnetstream.filter.bpf.BPFFilter
BPFFilter.BPFProtocolFilter
 
Nested classes/interfaces inherited from interface org.jnetstream.filter.FilterExpression
FilterExpression.FilterExpressionType
 
Nested classes/interfaces inherited from interface org.jnetstream.filter.Filter
Filter.AND<T extends FilterTarget>, Filter.MAXIMUM<T extends FilterTarget>, Filter.MINIMUM<T extends FilterTarget>, Filter.NOT<T extends FilterTarget>, Filter.OR<T extends FilterTarget>
 
Field Summary
 
Fields inherited from interface org.jnetstream.filter.Filter
TRUE
 
Constructor Summary
PcapFilter(java.lang.String expression)
           
 
Method Summary
 java.lang.String getExpression()
          Gets the actual expression in form of a string that needs to be compiled or interpreted
 FilterExpression.FilterExpressionType getExpressionType()
          Returns the syntax in a form of enum constant that the expression string is in.
 
Methods inherited from class org.jnetstream.filter.bpf.BPFFilter
accept, compile, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jnetstream.filter.FilterExpression
compile
 

Constructor Detail

PcapFilter

public PcapFilter(java.lang.String expression)
Method Detail

getExpression

public java.lang.String getExpression()
Description copied from interface: FilterExpression
Gets the actual expression in form of a string that needs to be compiled or interpreted

Specified by:
getExpression in interface FilterExpression<BPFProgram>
Returns:
the filter expression as a string

getExpressionType

public FilterExpression.FilterExpressionType getExpressionType()
Description copied from interface: FilterExpression
Returns the syntax in a form of enum constant that the expression string is in.

Specified by:
getExpressionType in interface FilterExpression<BPFProgram>
Returns:
name constant of the syntax of this filter expression