Creates a media type with the "image" type and the given subtype. @throws IllegalArgumentException if subtype is invalid
(String subtype)
| 1061 | * @throws IllegalArgumentException if subtype is invalid |
| 1062 | */ |
| 1063 | static MediaType createImageType(String subtype) { |
| 1064 | return create(IMAGE_TYPE, subtype); |
| 1065 | } |
| 1066 | |
| 1067 | /** |
| 1068 | * Creates a media type with the "text" type and the given subtype. |