diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index be6c0862c..2e8868338 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -54,9 +54,13 @@ package org.jivesoftware.smack; import org.xmlpull.v1.*; import java.util.*; +import java.io.ObjectInputStream; +import java.io.ByteArrayInputStream; + import org.jivesoftware.smack.packet.*; import org.jivesoftware.smack.packet.Error; import org.jivesoftware.smack.filter.PacketFilter; +import org.jivesoftware.smack.util.StringUtils; /** * Listens for XML traffic from the XMPP server, and parses it into packet objects. @@ -67,6 +71,9 @@ import org.jivesoftware.smack.filter.PacketFilter; */ public class PacketReader { + private static final String PROPERTIES_NAMESPACE = + "http://www.jivesoftware.com/xmlns/xmpp/properties"; + private Thread readerThread; private Thread listenerThread; @@ -199,9 +206,6 @@ public class PacketReader { else if (parser.getName().equals("stream")) { // Ensure the correct jabber:client namespace is being used. if ("jabber:client".equals(parser.getNamespace(null))) { - // Check to see if the server supports SASL. We don't actually - // do anything with this information at the moment. - boolean supportsSASL = parser.getNamespace("sasl") != null; // Get the connection id. for (int i=0; i