Lines Matching defs:packet
23 import org.jivesoftware.smack.packet.Packet;
27 * used when constructing packet listeners or collectors -- the filter defines
29 * packet processing.<p>
32 * for more complex packet filtering by using the
39 * // Use an anonymous inner class to define a packet filter that returns
40 * // all packets that have a packet ID of "RS145".
42 * public boolean accept(Packet packet) {
43 * return "RS145".equals(packet.getPacketID());
46 * // Create a new packet collector using the filter we created.
57 * Tests whether or not the specified packet should pass the filter.
59 * @param packet the packet to test.
60 * @return true if and only if <tt>packet</tt> passes the filter.
62 public boolean accept(Packet packet);