Package io.jmix.flowui.download
Class DownloadFormat
java.lang.Object
io.jmix.flowui.download.DownloadFormat
- All Implemented Interfaces:
Serializable
Format of data exported by
Downloader.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DownloadFormatstatic final List<DownloadFormat>static final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormatstatic final DownloadFormat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DownloadFormatgetByExtension(String extension) Returns aDownloadFormatobject based on the given file extension.Returns the content type associated with this instance.Returns the file extension associated with this instance.
-
Field Details
-
HTML
-
HTM
-
PDF
-
XLS
-
XLSX
-
RTF
-
DOC
-
DOCX
-
XML
-
CSV
-
JPEG
-
JPG
-
PNG
-
RAR
-
ZIP
-
GZ
-
JSON
-
OCTET_STREAM
-
TEXT
-
PPT
-
PPTX
-
DEFAULT_FORMATS
-
-
Constructor Details
-
DownloadFormat
-
-
Method Details
-
getByExtension
Returns aDownloadFormatobject based on the given file extension.- Parameters:
extension- the file extension (case-insensitive) used to find a correspondingDownloadFormat- Returns:
- the matching
DownloadFormat, or the defaultOCTET_STREAMformat if no match is found
-
getContentType
Returns the content type associated with this instance.- Returns:
- the content type
-
getFileExt
Returns the file extension associated with this instance.- Returns:
- the file extension
-