public class OrFilter extends Object implements PacketFilter
Constructor and Description |
---|
OrFilter()
Creates an empty OR filter.
|
OrFilter(PacketFilter filter1,
PacketFilter filter2)
Creates an OR filter using the two specified filters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Packet packet)
Tests whether or not the specified packet should pass the filter.
|
void |
addFilter(PacketFilter filter)
Adds a filter to the filter list for the OR operation.
|
String |
toString() |
public OrFilter()
addFilter(PacketFilter)
method.public OrFilter(PacketFilter filter1, PacketFilter filter2)
filter1
- the first packet filter.filter2
- the second packet filter.public void addFilter(PacketFilter filter)
filter
- a filter to add to the filter list.public boolean accept(Packet packet)
PacketFilter
accept
in interface PacketFilter
packet
- the packet to test.Copyright © 2003-2007 Jive Software.