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
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FileMetadataElement.Builderbuilder()booleangetDate()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()inthashCode()toXML(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.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:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
getElementName
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein 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
-