mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Introduce XmlEnvironment
This commit is contained in:
parent
dc780ffd6c
commit
fee3ed81ca
229 changed files with 715 additions and 526 deletions
|
@ -74,6 +74,7 @@ import org.jivesoftware.smack.packet.Message;
|
|||
import org.jivesoftware.smack.packet.Presence;
|
||||
import org.jivesoftware.smack.packet.Stanza;
|
||||
import org.jivesoftware.smack.packet.TopLevelStreamElement;
|
||||
import org.jivesoftware.smack.packet.XmlEnvironment;
|
||||
import org.jivesoftware.smack.util.ObservableReader;
|
||||
import org.jivesoftware.smack.util.ObservableWriter;
|
||||
import org.jivesoftware.smack.util.ReaderListener;
|
||||
|
@ -810,7 +811,7 @@ public class EnhancedDebugger extends SmackDebugger {
|
|||
|
||||
messagesTable.addRow(
|
||||
new Object[] {
|
||||
XmlUtil.prettyFormatXml(packet.toXML(null).toString()),
|
||||
XmlUtil.prettyFormatXml(packet.toXML().toString()),
|
||||
dateFormatter.format(new Date()),
|
||||
packetReceivedIcon,
|
||||
packetTypeIcon,
|
||||
|
@ -881,7 +882,7 @@ public class EnhancedDebugger extends SmackDebugger {
|
|||
|
||||
messagesTable.addRow(
|
||||
new Object[] {
|
||||
XmlUtil.prettyFormatXml(packet.toXML(null).toString()),
|
||||
XmlUtil.prettyFormatXml(packet.toXML().toString()),
|
||||
dateFormatter.format(new Date()),
|
||||
packetSentIcon,
|
||||
packetTypeIcon,
|
||||
|
@ -938,15 +939,14 @@ public class EnhancedDebugger extends SmackDebugger {
|
|||
}
|
||||
|
||||
@Override
|
||||
public String toXML(String enclosingNamespace) {
|
||||
public String toXML(XmlEnvironment enclosingNamespace) {
|
||||
return text;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return toXML(null);
|
||||
return toXML((XmlEnvironment) null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -323,8 +323,8 @@ public class LiteDebugger extends SmackDebugger {
|
|||
|
||||
@Override
|
||||
public void onIncomingStreamElement(TopLevelStreamElement streamElement) {
|
||||
interpretedText1.append(streamElement.toXML(null).toString());
|
||||
interpretedText2.append(streamElement.toXML(null).toString());
|
||||
interpretedText1.append(streamElement.toXML().toString());
|
||||
interpretedText2.append(streamElement.toXML().toString());
|
||||
interpretedText1.append(NEWLINE);
|
||||
interpretedText2.append(NEWLINE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue