public class VCardProvider extends Object implements IQProvider
Constructor and Description |
---|
VCardProvider() |
Modifier and Type | Method and Description |
---|---|
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.
|
public VCardProvider()
public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser) throws Exception
IQProvider
parseIQ
in interface IQProvider
parser
- an XML parser.Exception
- if an error occurs parsing the XML.public static VCard createVCardFromXML(String xml) throws Exception
xml
- the xml representing a users vCard.Exception
- if an exception occurs.