mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 00:02:06 +01:00
Use class name to create factory.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1955 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
a608313589
commit
1a65442954
2 changed files with 4 additions and 2 deletions
|
@ -114,7 +114,8 @@ class PacketReader {
|
|||
listenerThread.setDaemon(true);
|
||||
|
||||
try {
|
||||
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
|
||||
XmlPullParserFactory factory = XmlPullParserFactory.newInstance(
|
||||
"org.xmlpull.mxp1.MXParserFactory", null);
|
||||
factory.setNamespaceAware(true);
|
||||
parser = factory.newPullParser();
|
||||
parser.setInput(connection.reader);
|
||||
|
|
|
@ -153,7 +153,8 @@ public class ProviderManager {
|
|||
java.io.InputStream providerStream = null;
|
||||
try {
|
||||
providerStream = url.openStream();
|
||||
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
|
||||
XmlPullParserFactory factory = XmlPullParserFactory.newInstance(
|
||||
"org.xmlpull.mxp1.MXParserFactory", null);
|
||||
factory.setNamespaceAware(true);
|
||||
XmlPullParser parser = factory.newPullParser();
|
||||
parser.setInput(providerStream, "UTF-8");
|
||||
|
|
Loading…
Reference in a new issue