Modifier and Type | Field and Description |
---|---|
static MimeType |
ALL |
static MimeType |
APPLICATION_CFML |
static MimeType |
APPLICATION_JAVA |
static MimeType |
APPLICATION_JSON |
static MimeType |
APPLICATION_PLAIN |
static MimeType |
APPLICATION_WDDX |
static MimeType |
APPLICATION_XML |
static MimeType |
IMAGE_ASTERIX |
static MimeType |
IMAGE_BMP |
static MimeType |
IMAGE_FBX |
static MimeType |
IMAGE_GIF |
static MimeType |
IMAGE_ICO |
static MimeType |
IMAGE_JPG |
static MimeType |
IMAGE_PBM |
static MimeType |
IMAGE_PGM |
static MimeType |
IMAGE_PNG |
static MimeType |
IMAGE_PNM |
static MimeType |
IMAGE_PSD |
static MimeType |
IMAGE_TIFF |
static MimeType |
IMAGE_WBMP |
static MimeType |
TEXT_HTML |
Modifier and Type | Method and Description |
---|---|
MimeType |
bestMatch(MimeType[] others) |
boolean |
equals(Object obj) |
Charset |
getCharset() |
static MimeType |
getInstance(String strMimeType)
returns a mimetype that match given string
|
static MimeType[] |
getInstances(String strMimeTypes,
char delimiter) |
Map<String,String> |
getProperties() |
double |
getQuality() |
String |
getSubtype() |
String |
getType() |
boolean |
hasWildCards() |
boolean |
match(MimeType other)
checks if given mimetype is covered by current mimetype
|
boolean |
same(MimeType other)
checks if other is from the same type, just type and subtype are checked, properties (q,mxb,mxt) are ignored.
|
static int |
toFormat(List<MimeType> mimeTypes,
int ignore,
int defaultValue) |
static int |
toFormat(MimeType mt,
int defaultValue) |
static MimeType |
toMimetype(int format,
MimeType defaultValue) |
String |
toString() |
public static final MimeType APPLICATION_JSON
public static final MimeType APPLICATION_XML
public static final MimeType APPLICATION_WDDX
public static final MimeType APPLICATION_CFML
public static final MimeType APPLICATION_PLAIN
public static final MimeType IMAGE_TIFF
public static final MimeType IMAGE_WBMP
public static final MimeType IMAGE_ASTERIX
public static final MimeType APPLICATION_JAVA
public static MimeType getInstance(String strMimeType)
strMimeType
- public static MimeType[] getInstances(String strMimeTypes, char delimiter)
public String getSubtype()
public Map<String,String> getProperties()
public double getQuality()
public Charset getCharset()
public boolean hasWildCards()
public boolean match(MimeType other)
other
- public boolean same(MimeType other)
other
- public static MimeType toMimetype(int format, MimeType defaultValue)
Copyright © 2015 Lucee