Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.coin
Class CoinIQProvider

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.coin.CoinIQProvider
All Implemented Interfaces:
org.jivesoftware.smack.provider.IQProvider

public class CoinIQProvider
extends Object
implements org.jivesoftware.smack.provider.IQProvider

An implementation of a Coin IQ provider that parses incoming Coin IQs.

Author:
Sebastien Vincent

Constructor Summary
CoinIQProvider()
          Constructor.
 
Method Summary
 org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
          Parse the Coin IQ sub-document and returns the corresponding CoinIQ.
static String parseText(org.xmlpull.v1.XmlPullParser parser)
          Returns the content of the next XmlPullParser.TEXT element that we encounter in parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoinIQProvider

public CoinIQProvider()
Constructor.

Method Detail

parseIQ

public org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
                                         throws Exception
Parse the Coin IQ sub-document and returns the corresponding CoinIQ.

Specified by:
parseIQ in interface org.jivesoftware.smack.provider.IQProvider
Parameters:
parser - XML parser
Returns:
CoinIQ
Throws:
Exception - if something goes wrong during parsing

parseText

public static String parseText(org.xmlpull.v1.XmlPullParser parser)
                        throws Exception
Returns the content of the next XmlPullParser.TEXT element that we encounter in parser.

Parameters:
parser - the parse that we'll be probing for text.
Returns:
the content of the next XmlPullParser.TEXT element we come across or null if we encounter a closing tag first.
Throws:
Exception - if an error occurs parsing the XML.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.