Class MediaType
java.lang.Object
com.itextpdf.styledxmlparser.css.media.MediaType
Class that bundles all the media types and allows you to registered valid media types in a
Set
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The Constant ALL.static final String
The Constant AURAL.static final String
The Constant BRAILLE.static final String
The Constant EMBOSSED.static final String
The Constant HANDHELD.static final String
The Constant PRINT.static final String
The Constant PROJECTION.The Constant registeredMediaTypes.static final String
The Constant SCREEN.static final String
The Constant SPEECH.static final String
The Constant TTY.static final String
The Constant TV. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isValidMediaType
(String mediaType) Checks if a media type is registered as a valid media type.private static String
registerMediaType
(String mediaType) Registers a media type.
-
Field Details
-
registeredMediaTypes
The Constant registeredMediaTypes. -
ALL
The Constant ALL. -
AURAL
The Constant AURAL. -
BRAILLE
The Constant BRAILLE. -
EMBOSSED
The Constant EMBOSSED. -
HANDHELD
The Constant HANDHELD. -
PRINT
The Constant PRINT. -
PROJECTION
The Constant PROJECTION. -
SCREEN
The Constant SCREEN. -
SPEECH
The Constant SPEECH. -
TTY
The Constant TTY. -
TV
The Constant TV.
-
-
Constructor Details
-
MediaType
private MediaType()Creates a newMediaType
instance.
-
-
Method Details
-
isValidMediaType
Checks if a media type is registered as a valid media type.- Parameters:
mediaType
- the media type- Returns:
- true, if it's a valid media type
-
registerMediaType
Registers a media type.- Parameters:
mediaType
- the media type- Returns:
- the string
-