Creates a media type with the "text" type and the given subtype. @throws IllegalArgumentException if subtype is invalid
(String subtype)
| 1070 | * @throws IllegalArgumentException if subtype is invalid |
| 1071 | */ |
| 1072 | static MediaType createTextType(String subtype) { |
| 1073 | return create(TEXT_TYPE, subtype); |
| 1074 | } |
| 1075 | |
| 1076 | /** |
| 1077 | * Creates a media type with the "video" type and the given subtype. |