Class FileMetadataElement
java.lang.Object
org.jivesoftware.smackx.file_metadata.element.FileMetadataElement
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
public final class FileMetadataElement
extends Object
implements org.jivesoftware.smack.packet.ExtensionElement
File metadata element as defined in XEP-0446: File Metadata Element.
This element is used in a generic way to provide information about files, e.g. during file sharing.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FileMetadataElement.Builderbuilder()booleangetDate()getDescription(String lang) getHashElement(HashManager.ALGORITHM algorithm) getName()Return the name of the file.getSize()getWidth()inthashCode()org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
- See Also:
-
NAMESPACE
- See Also:
-
ELEM_DATE
- See Also:
-
ELEM_HEIGHT
- See Also:
-
ELEM_WIDTH
- See Also:
-
ELEM_DESC
- See Also:
-
ELEM_LENGTH
- See Also:
-
ELEM_MEDIA_TYPE
- See Also:
-
ELEM_NAME
- See Also:
-
ELEM_SIZE
- See Also:
-
-
Method Details
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment) - Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getDate
-
getHeight
-
getWidth
-
getDescriptions
-
getDescription
-
getDescription
-
getHashElements
-
getHashElement
-
getLength
-
getMediaType
-
getName
Return the name of the file.- Returns:
- escaped name
-
getRawName
-
getSize
-
getThumbnails
-
hashCode
public int hashCode() -
equals
-
builder
-