public final class DownloadFormat
extends java.lang.Object
implements java.io.Serializable
Downloader
.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
contentType |
static DownloadFormat |
CSV |
static java.util.List<DownloadFormat> |
DEFAULT_FORMATS |
static DownloadFormat |
DOC |
static DownloadFormat |
DOCX |
protected java.lang.String |
fileExt |
static DownloadFormat |
GZ |
static DownloadFormat |
HTM |
static DownloadFormat |
HTML |
static DownloadFormat |
JPEG |
static DownloadFormat |
JPG |
static DownloadFormat |
JSON |
static DownloadFormat |
OCTET_STREAM |
static DownloadFormat |
PDF |
static DownloadFormat |
PNG |
static DownloadFormat |
RAR |
static DownloadFormat |
RTF |
static DownloadFormat |
TEXT |
static DownloadFormat |
XLS |
static DownloadFormat |
XLSX |
static DownloadFormat |
XML |
static DownloadFormat |
ZIP |
Constructor and Description |
---|
DownloadFormat(java.lang.String contentType,
java.lang.String fileExt) |
Modifier and Type | Method and Description |
---|---|
static DownloadFormat |
getByExtension(java.lang.String extension) |
java.lang.String |
getContentType() |
java.lang.String |
getFileExt() |
public static final DownloadFormat HTML
public static final DownloadFormat HTM
public static final DownloadFormat PDF
public static final DownloadFormat XLS
public static final DownloadFormat XLSX
public static final DownloadFormat RTF
public static final DownloadFormat DOC
public static final DownloadFormat DOCX
public static final DownloadFormat XML
public static final DownloadFormat CSV
public static final DownloadFormat JPEG
public static final DownloadFormat JPG
public static final DownloadFormat PNG
public static final DownloadFormat RAR
public static final DownloadFormat ZIP
public static final DownloadFormat GZ
public static final DownloadFormat JSON
public static final DownloadFormat OCTET_STREAM
public static final DownloadFormat TEXT
public static final java.util.List<DownloadFormat> DEFAULT_FORMATS
protected final java.lang.String contentType
protected final java.lang.String fileExt
public DownloadFormat(java.lang.String contentType, java.lang.String fileExt)
public static DownloadFormat getByExtension(java.lang.String extension)
public java.lang.String getContentType()
public java.lang.String getFileExt()