src/net/java/sip/communicator/impl/protocol/jabber/OperationSetPersistentPresenceJabberImpl.java
/**
     * Creates a listener to call a parser which manages presence packets with
     * the element name "x" and the namespace "vcard-temp:x:update".
     */
Creates a listener to call a parser which manages presence packets with
the element name "x" and the namespace "vcard-temp:x:update".
Creates a listener to call a parser which manages presence packets with the element name " x " and the namespace " vcard - temp : x : update " .
public void createContactPhotoPresenceListener()
    {
        parentProvider.getConnection().addAsyncStanzaListener(
            new StanzaListener()
            {
                @Override
                public void processStanza(Stanza packet)
                {
                    parseContactPhotoPresence(packet);
                }
            },
            new AndFilter(new StanzaTypeFilter(Presence.class),
                new StanzaExtensionFilter(
                    VCardTempXUpdatePresenceExtension.ELEMENT_NAME,
                    VCardTempXUpdatePresenceExtension.NAMESPACE)
                )
            );
    }
public void createContactPhotoPresenceListener ( ) { parentProvider . getConnection ( ) . addAsyncStanzaListener ( new StanzaListener ( ) { @ Override public void processStanza ( Stanza packet ) { parseContactPhotoPresence ( packet ) ; } } , new AndFilter ( new StanzaTypeFilter ( Presence . class ) , new StanzaExtensionFilter ( VCardTempXUpdatePresenceExtension . ELEMENT_NAME , VCardTempXUpdatePresenceExtension . NAMESPACE ) ) ) ; }
Creates a listener to call a parser which manages presence packets with
 the element name "x" and the namespace "vcard-temp:x:update".
Creates a listener to call a parser which manages presence packets with the element name " x " and the namespace " vcard - temp : x : update " .
// Registers the listener. // Calls the parser to manages this presence packet. // Creates a filter to only listen to presence packet with the // element name "x" and the namespace "vcard-temp:x:update".