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
Modifier 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.static final String
The Constant SCREEN.static final String
The Constant SPEECH.static final String
The Constant TTY.static final String
The Constant TV. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isValidMediaType
(String mediaType) Checks if a media type is registered as a valid media type.
-
Field Details
-
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.
-
-
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
-