1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-12 05:51:08 +01:00

Use XmlEnvironment in parsing/provider subsystem

This commit is contained in:
Florian Schmaus 2019-02-15 23:21:30 +01:00
parent 43bb418d99
commit 8df69bd3ce
188 changed files with 486 additions and 264 deletions

View file

@ -18,6 +18,7 @@ package org.jivesoftware.smackx.shim.provider;
import java.io.IOException;
import org.jivesoftware.smack.packet.XmlEnvironment;
import org.jivesoftware.smack.provider.ExtensionElementProvider;
import org.jivesoftware.smackx.shim.packet.Header;
@ -32,7 +33,7 @@ import org.xmlpull.v1.XmlPullParserException;
*/
public class HeaderProvider extends ExtensionElementProvider<Header> {
@Override
public Header parse(XmlPullParser parser, int initialDepth) throws XmlPullParserException, IOException {
public Header parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, IOException {
String name = parser.getAttributeValue(null, "name");
String value = null;