File tree 2 files changed +20
-0
lines changed
android/guava/src/com/google/common/net
guava/src/com/google/common/net
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ private static MediaType addKnownType(MediaType mediaType) {
171
171
* may be necessary in certain situations for compatibility.
172
172
*/
173
173
public static final MediaType TEXT_JAVASCRIPT_UTF_8 = createConstantUtf8 (TEXT_TYPE , "javascript" );
174
+
174
175
/**
175
176
* <a href="http://www.iana.org/assignments/media-types/text/tab-separated-values">Tab separated
176
177
* values</a>.
@@ -458,6 +459,15 @@ private static MediaType addKnownType(MediaType mediaType) {
458
459
*/
459
460
public static final MediaType APPLICATION_BINARY = createConstant (APPLICATION_TYPE , "binary" );
460
461
462
+ /**
463
+ * As described in <a href="https://www.rfc-editor.org/rfc/rfc8949.html">RFC 8949</a>, this
464
+ * constant ({@code application/cbor}) is used for the Concise Binary Object Representation (CBOR)
465
+ * data format.
466
+ *
467
+ * @since NEXT
468
+ */
469
+ public static final MediaType CBOR = createConstant (APPLICATION_TYPE , "cbor" );
470
+
461
471
/**
462
472
* Media type for the <a href="https://tools.ietf.org/html/rfc7946">GeoJSON Format</a>, a
463
473
* geospatial data interchange format based on JSON.
Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ private static MediaType addKnownType(MediaType mediaType) {
171
171
* may be necessary in certain situations for compatibility.
172
172
*/
173
173
public static final MediaType TEXT_JAVASCRIPT_UTF_8 = createConstantUtf8 (TEXT_TYPE , "javascript" );
174
+
174
175
/**
175
176
* <a href="http://www.iana.org/assignments/media-types/text/tab-separated-values">Tab separated
176
177
* values</a>.
@@ -458,6 +459,15 @@ private static MediaType addKnownType(MediaType mediaType) {
458
459
*/
459
460
public static final MediaType APPLICATION_BINARY = createConstant (APPLICATION_TYPE , "binary" );
460
461
462
+ /**
463
+ * As described in <a href="https://www.rfc-editor.org/rfc/rfc8949.html">RFC 8949</a>, this
464
+ * constant ({@code application/cbor}) is used for the Concise Binary Object Representation (CBOR)
465
+ * data format.
466
+ *
467
+ * @since NEXT
468
+ */
469
+ public static final MediaType CBOR = createConstant (APPLICATION_TYPE , "cbor" );
470
+
461
471
/**
462
472
* Media type for the <a href="https://tools.ietf.org/html/rfc7946">GeoJSON Format</a>, a
463
473
* geospatial data interchange format based on JSON.
You can’t perform that action at this time.
0 commit comments