org.jivesoftware.smack.provider
Class PrivacyProvider
java.lang.Object
org.jivesoftware.smack.provider.PrivacyProvider
- All Implemented Interfaces:
- IQProvider
public class PrivacyProvider
- extends Object
- implements IQProvider
The PrivacyProvider parses Privacy
packets. Privacy
Parses the query sub-document and creates an instance of Privacy
.
For each item in the list element, it creates an instance
of PrivacyItem
and PrivacyItem.PrivacyRule
.
- Author:
- Francisco Vives
Method Summary |
IQ |
parseIQ(org.xmlpull.v1.XmlPullParser parser)
Parse the IQ sub-document and create an IQ instance. |
PrivacyItem |
parseItem(org.xmlpull.v1.XmlPullParser parser)
|
void |
parseList(org.xmlpull.v1.XmlPullParser parser,
Privacy privacy)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrivacyProvider
public PrivacyProvider()
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:
parseIQ
in interface IQProvider
- Parameters:
parser
- an XML parser.
- Returns:
- a new IQ instance.
- Throws:
Exception
- if an error occurs parsing the XML.
parseList
public void parseList(org.xmlpull.v1.XmlPullParser parser,
Privacy privacy)
throws Exception
- Throws:
Exception
parseItem
public PrivacyItem parseItem(org.xmlpull.v1.XmlPullParser parser)
throws Exception
- Throws:
Exception
Copyright © 2003-2007 Jive Software.