public interface MediaType
Modifier and Type | Interface and Description |
---|---|
static interface |
MediaType.Binary |
static interface |
MediaType.Compressibility |
static interface |
MediaType.Multipart |
static interface |
MediaType.NonBinary |
static interface |
MediaType.WithFixedCharset |
static interface |
MediaType.WithOpenCharset |
Modifier and Type | Method and Description |
---|---|
boolean |
binary()
True when this media-type is not character-based.
|
boolean |
isApplication() |
boolean |
isAudio() |
boolean |
isCompressible()
True when this media-type is generally compressible.
|
boolean |
isImage() |
boolean |
isMessage() |
boolean |
isMultipart() |
boolean |
isText() |
boolean |
isVideo() |
java.lang.String |
mainType()
The main-type of this media-type.
|
java.lang.String |
subType()
The sub-type of this media-type.
|
MediaRange |
toRange()
Creates a media-range from this media-type.
|
MediaRange |
toRange(float qValue)
Creates a media-range from this media-type with a given qValue.
|
java.lang.String mainType()
java.lang.String subType()
boolean isCompressible()
boolean binary()
boolean isApplication()
boolean isAudio()
boolean isImage()
boolean isMessage()
boolean isMultipart()
boolean isText()
boolean isVideo()
MediaRange toRange()
MediaRange toRange(float qValue)
qValue
- (undocumented)