Interface MediaType
- All Known Subinterfaces:
MediaType.Binary,MediaType.Multipart,MediaType.NonBinary,MediaType.WithFixedCharset,MediaType.WithOpenCharset
- All Known Implementing Classes:
MediaType,MediaType.Binary,MediaType.Multipart,MediaType.NonBinary,MediaType.NonMultipartWithOpenCharset,MediaType.WithFixedCharset,MediaType.WithOpenCharset
public interface MediaType
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionbooleanbinary()True when this media-type is not character-based.booleanbooleanisAudio()booleanTrue when this media-type is generally compressible.booleanisImage()booleanbooleanbooleanisText()booleanisVideo()mainType()The main-type of this media-type.subType()The sub-type of this media-type.toRange()Creates a media-range from this media-type.toRange(float qValue) Creates a media-range from this media-type with a given qValue.value()Returns the string representation of this MediaType
-
Method Details
-
mainType
String mainType()The main-type of this media-type.- Returns:
- (undocumented)
-
subType
String subType()The sub-type of this media-type.- Returns:
- (undocumented)
-
isCompressible
boolean isCompressible()True when this media-type is generally compressible.- Returns:
- (undocumented)
-
binary
boolean binary()True when this media-type is not character-based.- Returns:
- (undocumented)
-
isApplication
boolean isApplication() -
isAudio
boolean isAudio() -
isImage
boolean isImage() -
isMessage
boolean isMessage() -
isMultipart
boolean isMultipart() -
isText
boolean isText() -
isVideo
boolean isVideo() -
toRange
MediaRange toRange()Creates a media-range from this media-type.- Returns:
- (undocumented)
-
toRange
Creates a media-range from this media-type with a given qValue.- Parameters:
qValue- (undocumented)- Returns:
- (undocumented)
-
value
String value()Returns the string representation of this MediaType- Returns:
- (undocumented)
- Since:
- 1.2.0
-