mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Add Packet.toString()
This commit is contained in:
parent
755765120d
commit
55a967da93
1 changed files with 6 additions and 0 deletions
|
@ -347,6 +347,12 @@ public abstract class Packet implements TopLevelStreamElement {
|
|||
return removeExtension(extension.getElementName(), extension.getNamespace());
|
||||
}
|
||||
|
||||
@Override
|
||||
// NOTE When Smack is using Java 8, then this method should be moved in Element as "Default Method".
|
||||
public String toString() {
|
||||
return toXML().toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the extension sub-packets (including properties data) as an XML
|
||||
* String, or the Empty String if there are no packet extensions.
|
||||
|
|
Loading…
Reference in a new issue