title: What is the difference between packetFilter and accept?
body: <p>What is the difference between these two methods :</p>
  
  <p><em>processPacket :</em> </p>
  
  <pre><code>PacketListener pListener = new PacketListener() {
          @Override
          public void processPacket(Packet packet) {
              if(packet instanceof Presence) {
                 //..
              }
          }
      };
  </code></pre>
  
  <p>and <em>accept :</em></p>
  
  <pre><code>PacketFilter pFilter = new PacketFilter() {
          @Override
          public boolean accept(Packet packet) {
              return true;
          }
      };
  </code></pre>
  
  <p>Aren't they capable of doing the same thing ?</p>
  
  <p><em>note :</em></p>
  
  <pre><code>con.addPacketListener(pListener, pFilter);
  </code></pre>