MCPcopy
hub / github.com/google/guava / createImageType

Method createImageType

guava/src/com/google/common/net/MediaType.java:1063–1065  ·  view source on GitHub ↗

Creates a media type with the "image" type and the given subtype. @throws IllegalArgumentException if subtype is invalid

(String subtype)

Source from the content-addressed store, hash-verified

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.

Callers 1

testCreateImageTypeMethod · 0.95

Calls 1

createMethod · 0.95

Tested by 1

testCreateImageTypeMethod · 0.76