public class ThumbnailIQ
extends org.jivesoftware.smack.packet.IQ
implements org.jivesoftware.smack.provider.IQProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CID
The name of the thumbnail attribute "cid".
|
static java.lang.String |
ELEMENT_NAME
The name of the "data" element.
|
static java.lang.String |
NAMESPACE
The names XMPP space that the thumbnail elements belong to.
|
static java.lang.String |
TYPE
The name of the thumbnail attribute "mime-type".
|
Constructor and Description |
---|
ThumbnailIQ()
An empty constructor used to initialize this class as an
IQProvier.
|
ThumbnailIQ(java.lang.String from,
java.lang.String to,
java.lang.String cid,
org.jivesoftware.smack.packet.IQ.Type type)
Creates a ThumbnailIQ packet, by specifying the source, the
destination, the content-ID and the type of this packet.
|
ThumbnailIQ(java.lang.String from,
java.lang.String to,
java.lang.String cid,
java.lang.String mimeType,
byte[] data,
org.jivesoftware.smack.packet.IQ.Type type)
Creates a ThumbnailIQ packet, by specifying the source, the
destination, the content-ID, the type of data and the data of the
thumbnail.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChildElementXML()
Returns the xml representing the data element in this IQ packet.
|
java.lang.String |
getCid()
Returns the content-ID of this thumbnail packet.
|
byte[] |
getData()
Returns the data of the thumbnail.
|
org.jivesoftware.smack.packet.IQ |
parseIQ(org.xmlpull.v1.XmlPullParser parser)
Parses the given XmlPullParser into a ThumbnailIQ packet and
returns it.
|
createErrorResponse, createResultIQ, getType, setType, toXML
addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String CID
public static final java.lang.String TYPE
public ThumbnailIQ()
public ThumbnailIQ(java.lang.String from, java.lang.String to, java.lang.String cid, org.jivesoftware.smack.packet.IQ.Type type)
from
- the source of the packetto
- the destination of the packetcid
- the content-ID used to identify this packet in the destinationtype
- the of the packet, which could be one of the types defined
in IQ.Typepublic ThumbnailIQ(java.lang.String from, java.lang.String to, java.lang.String cid, java.lang.String mimeType, byte[] data, org.jivesoftware.smack.packet.IQ.Type type)
from
- the source of the packetto
- the destination of the packetcid
- the content-ID used to identify this packet in the destinationmimeType
- the type of the data passeddata
- the data of the thumbnailtype
- the of the packet, which could be one of the types defined
in IQ.Typepublic org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser parser) throws java.lang.Exception
parseIQ
in interface org.jivesoftware.smack.provider.IQProvider
java.lang.Exception
IQProvider.parseIQ(XmlPullParser)
public java.lang.String getChildElementXML()
getChildElementXML
in class org.jivesoftware.smack.packet.IQ
public java.lang.String getCid()
public byte[] getData()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.