public class PacketTypeFilter extends Object implements PacketFilter
Constructor and Description |
---|
PacketTypeFilter(Class packetType)
Creates a new packet type filter that will filter for packets that are the
same type as packetType.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Packet packet)
Tests whether or not the specified packet should pass the filter.
|
String |
toString() |
public PacketTypeFilter(Class packetType)
packetType
- the Class type.public boolean accept(Packet packet)
PacketFilter
accept
in interface PacketFilter
packet
- the packet to test.Copyright © 2003-2007 Jive Software.