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

Method createTextType

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

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

(String subtype)

Source from the content-addressed store, hash-verified

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.

Callers 1

testCreateTextTypeMethod · 0.95

Calls 1

createMethod · 0.95

Tested by 1

testCreateTextTypeMethod · 0.76