mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +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);
|
listenerThread.setDaemon(true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
|
XmlPullParserFactory factory = XmlPullParserFactory.newInstance(
|
||||||
|
"org.xmlpull.mxp1.MXParserFactory", null);
|
||||||
factory.setNamespaceAware(true);
|
factory.setNamespaceAware(true);
|
||||||
parser = factory.newPullParser();
|
parser = factory.newPullParser();
|
||||||
parser.setInput(connection.reader);
|
parser.setInput(connection.reader);
|
||||||
|
|
|
@ -153,7 +153,8 @@ public class ProviderManager {
|
||||||
java.io.InputStream providerStream = null;
|
java.io.InputStream providerStream = null;
|
||||||
try {
|
try {
|
||||||
providerStream = url.openStream();
|
providerStream = url.openStream();
|
||||||
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
|
XmlPullParserFactory factory = XmlPullParserFactory.newInstance(
|
||||||
|
"org.xmlpull.mxp1.MXParserFactory", null);
|
||||||
factory.setNamespaceAware(true);
|
factory.setNamespaceAware(true);
|
||||||
XmlPullParser parser = factory.newPullParser();
|
XmlPullParser parser = factory.newPullParser();
|
||||||
parser.setInput(providerStream, "UTF-8");
|
parser.setInput(providerStream, "UTF-8");
|
||||||
|
|
Loading…
Reference in a new issue