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 Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
-
NAMESPACE
-
ELEM_DATE
-
ELEM_HEIGHT
- See Also:
-
ELEM_WIDTH
- See Also:
-
ELEM_DESC
-
ELEM_LENGTH
- See Also:
-
ELEM_MEDIA_TYPE
- See Also:
-
ELEM_NAME
-
ELEM_SIZE
-
-
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
-
getRawName
-
getSize
-
getThumbnails
-
hashCode
-
equals
-
builder
-