|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.packet.StreamInitiation.File
net.java.sip.communicator.impl.protocol.jabber.extensions.thumbnail.FileElement
public class FileElement
The FileElement extends the smackx StreamInitiation.File in order to provide a file that supports thumbnails.
| Field Summary | |
|---|---|
static String |
ELEMENT_NAME
The element name of this IQProvider. |
static String |
NAMESPACE
The namespace of this IQProvider. |
| Constructor Summary | |
|---|---|
FileElement()
An empty constructor used to initialize this class as an IQProvider. |
|
FileElement(org.jivesoftware.smackx.packet.StreamInitiation.File baseFile,
ThumbnailElement thumbnail)
Creates a FileElement by specifying a base file and a thumbnail to extend it with. |
|
FileElement(String name,
long size)
Creates a FileElement by specifying the name and the size of the file. |
|
| Method Summary | |
|---|---|
ThumbnailElement |
getThumbnailElement()
Returns the ThumbnailElement contained in this FileElement. |
org.jivesoftware.smack.packet.IQ |
parseIQ(org.xmlpull.v1.XmlPullParser parser)
Parses the given parser in order to create a FileElement from it. |
void |
setThumbnailElement(ThumbnailElement thumbnail)
Sets the given thumbnail to this FileElement. |
String |
toXML()
Represents this FileElement in an XML. |
| Methods inherited from class org.jivesoftware.smackx.packet.StreamInitiation.File |
|---|
getDate, getDesc, getElementName, getHash, getName, getNamespace, getSize, isRanged, setDate, setDesc, setHash, setRanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ELEMENT_NAME
public static final String NAMESPACE
| Constructor Detail |
|---|
public FileElement()
public FileElement(org.jivesoftware.smackx.packet.StreamInitiation.File baseFile,
ThumbnailElement thumbnail)
baseFile - the file used as a basethumbnail - the thumbnail to add
public FileElement(String name,
long size)
name - the name of the filesize - the size of the file| Method Detail |
|---|
public String toXML()
toXML in interface org.jivesoftware.smack.packet.PacketExtensiontoXML in class org.jivesoftware.smackx.packet.StreamInitiation.FileStreamInitiation.File.toXML()public ThumbnailElement getThumbnailElement()
public void setThumbnailElement(ThumbnailElement thumbnail)
thumbnail - the ThumbnailElement to set
public org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
throws Exception
parseIQ in interface org.jivesoftware.smack.provider.IQProviderparser - the parser to parse
ExceptionIQProvider.parseIQ(XmlPullParser)
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||