Class FileMetadataElement
java.lang.Object
org.jivesoftware.smackx.file_metadata.element.FileMetadataElement
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileMetadataElement.Builder
builder()
boolean
getDate()
getDescription
(String lang) Returns the root element name.getHashElement
(HashManager.ALGORITHM algorithm) getName()
Return the name of the file.Returns the root element XML namespace.getSize()
getWidth()
int
hashCode()
toXML
(XmlEnvironment xmlEnvironment) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getDate
-
getHeight
-
getWidth
-
getDescriptions
-
getDescription
-
getDescription
-
getHashElements
-
getHashElement
-
getLength
-
getMediaType
-
getName
Return the name of the file.- Returns:
- escaped name
-
getRawName
-
getSize
-
getThumbnails
-
hashCode
-
equals
-
builder
-