diff --git a/android/guava/src/com/google/common/net/MediaType.java b/android/guava/src/com/google/common/net/MediaType.java index 74583989768f..90da1acbf048 100644 --- a/android/guava/src/com/google/common/net/MediaType.java +++ b/android/guava/src/com/google/common/net/MediaType.java @@ -171,6 +171,7 @@ private static MediaType addKnownType(MediaType mediaType) { * may be necessary in certain situations for compatibility. */ public static final MediaType TEXT_JAVASCRIPT_UTF_8 = createConstantUtf8(TEXT_TYPE, "javascript"); + /** * Tab separated * values. @@ -458,6 +459,15 @@ private static MediaType addKnownType(MediaType mediaType) { */ public static final MediaType APPLICATION_BINARY = createConstant(APPLICATION_TYPE, "binary"); + /** + * As described in RFC 8949, this + * constant ({@code application/cbor}) is used for the Concise Binary Object Representation (CBOR) + * data format. + * + * @since NEXT + */ + public static final MediaType CBOR = createConstant(APPLICATION_TYPE, "cbor"); + /** * Media type for the GeoJSON Format, a * geospatial data interchange format based on JSON. diff --git a/guava/src/com/google/common/net/MediaType.java b/guava/src/com/google/common/net/MediaType.java index 74583989768f..90da1acbf048 100644 --- a/guava/src/com/google/common/net/MediaType.java +++ b/guava/src/com/google/common/net/MediaType.java @@ -171,6 +171,7 @@ private static MediaType addKnownType(MediaType mediaType) { * may be necessary in certain situations for compatibility. */ public static final MediaType TEXT_JAVASCRIPT_UTF_8 = createConstantUtf8(TEXT_TYPE, "javascript"); + /** * Tab separated * values. @@ -458,6 +459,15 @@ private static MediaType addKnownType(MediaType mediaType) { */ public static final MediaType APPLICATION_BINARY = createConstant(APPLICATION_TYPE, "binary"); + /** + * As described in RFC 8949, this + * constant ({@code application/cbor}) is used for the Concise Binary Object Representation (CBOR) + * data format. + * + * @since NEXT + */ + public static final MediaType CBOR = createConstant(APPLICATION_TYPE, "cbor"); + /** * Media type for the GeoJSON Format, a * geospatial data interchange format based on JSON.