Class FileMetadataElement.Builder
- java.lang.Object
-
- org.jivesoftware.smackx.file_metadata.element.FileMetadataElement.Builder
-
- Enclosing class:
- FileMetadataElement
public static class FileMetadataElement.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileMetadataElement.Builder
addDescription(String description)
FileMetadataElement.Builder
addDescription(String description, String language)
FileMetadataElement.Builder
addHash(HashElement hashElement)
FileMetadataElement.Builder
addThumbnail(ThumbnailElement thumbnail)
FileMetadataElement
build()
FileMetadataElement.Builder
setDimensions(int width, int height)
FileMetadataElement.Builder
setHeight(int height)
FileMetadataElement.Builder
setLength(long length)
FileMetadataElement.Builder
setMediaType(String mediaType)
FileMetadataElement.Builder
setModificationDate(Date date)
FileMetadataElement.Builder
setName(String name)
FileMetadataElement.Builder
setSize(long size)
FileMetadataElement.Builder
setWidth(int width)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
-
Method Detail
-
setModificationDate
public FileMetadataElement.Builder setModificationDate(Date date)
-
setDimensions
public FileMetadataElement.Builder setDimensions(int width, int height)
-
setHeight
public FileMetadataElement.Builder setHeight(int height)
-
setWidth
public FileMetadataElement.Builder setWidth(int width)
-
addDescription
public FileMetadataElement.Builder addDescription(String description)
-
addDescription
public FileMetadataElement.Builder addDescription(String description, String language)
-
addHash
public FileMetadataElement.Builder addHash(HashElement hashElement)
-
setLength
public FileMetadataElement.Builder setLength(long length)
-
setMediaType
public FileMetadataElement.Builder setMediaType(String mediaType)
-
setName
public FileMetadataElement.Builder setName(String name)
-
setSize
public FileMetadataElement.Builder setSize(long size)
-
addThumbnail
public FileMetadataElement.Builder addThumbnail(ThumbnailElement thumbnail)
-
build
public FileMetadataElement build()
-
-