org.jivesoftware.smackx.provider
Class VCardProvider
java.lang.Object
   org.jivesoftware.smackx.provider.VCardProvider
org.jivesoftware.smackx.provider.VCardProvider
- All Implemented Interfaces: 
- IQProvider
- public class VCardProvider 
- extends Object- implements IQProvider
vCard provider.
- Author:
- Gaston Dombiak, Derek DeMoro
 
| Method Summary | 
| static VCard | createVCardFromXML(String xml)Builds a users vCard from xml file.
 | 
|  IQ | parseIQ(org.xmlpull.v1.XmlPullParser parser)Parse the IQ sub-document and create an IQ instance.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
VCardProvider
public VCardProvider()
parseIQ
public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
           throws Exception
- Description copied from interface: IQProvider
- Parse the IQ sub-document and create an IQ instance. Each IQ must have a
 single child element. At the beginning of the method call, the xml parser
 will be positioned at the opening tag of the IQ child element. At the end
 of the method call, the parser must be positioned on the closing tag
 of the child element.
 
- 
- Specified by:
- parseIQin interface- IQProvider
 
- 
- Parameters:
- parser- an XML parser.
- Returns:
- a new IQ instance.
- Throws:
- Exception- if an error occurs parsing the XML.
 
createVCardFromXML
public static VCard createVCardFromXML(String xml)
                                throws Exception
- Builds a users vCard from xml file.
 
- 
 
- 
- Parameters:
- xml- the xml representing a users vCard.
- Returns:
- the VCard.
- Throws:
- Exception- if an exception occurs.
 
Copyright © 2003-2007 Jive Software.