1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 05:52: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:
Matt Tucker 2003-06-06 15:07:55 +00:00 committed by mtucker
parent a608313589
commit 1a65442954
2 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -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");