Modifier and Type
Method and Description
Returns the packet as XML.
Methods inherited from class org.jivesoftware.smack.packet.
Packet addCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public java.lang.String toXML()
Description copied from class: Packet
Returns the packet as XML. Every concrete extension of Packet must implement
this method. In addition to writing out packet-specific data, every sub-class
should also write out the error and the extensions data if they are defined.
toXML Packet Returns: the XML format of the packet as a String.