|
1 | 1 | package com.upokecenter.cbor; |
2 | 2 | /* |
3 | | -Written in 2013 by Peter O. |
| 3 | +Written by Peter O. in 2013. |
4 | 4 | Any copyright is dedicated to the Public Domain. |
5 | 5 | http://creativecommons.org/publicdomain/zero/1.0/ |
6 | 6 | If you like this, you should donate to Peter O. |
@@ -3604,11 +3604,13 @@ public CBORObject Set(Object key, Object valueOb) { |
3604 | 3604 | * string will not begin with a byte-order mark (U + FEFF); RFC 7159 (the |
3605 | 3605 | * JSON specification) forbids placing a byte-order mark at the |
3606 | 3606 | * beginning of a JSON string.</li> <li>Byte strings are converted to |
3607 | | - * Base64 URL by default.</li> <li>Rational numbers will be converted to |
3608 | | - * their exact form, if possible, otherwise to a high-precision |
3609 | | - * approximation. (The resulting approximation could overflow to |
3610 | | - * infinity, in which case the rational number is converted to |
3611 | | - * null.)</li> <li>Simple values other than true and false will be |
| 3607 | + * Base64 URL without whitespace or padding by default. (A byte string |
| 3608 | + * will instead be converted to traditional base64 without whitespace or |
| 3609 | + * padding if it has tag 22, or base16 for tag 23.)</li> <li>Rational |
| 3610 | + * numbers will be converted to their exact form, if possible, otherwise |
| 3611 | + * to a high-precision approximation. (The resulting approximation could |
| 3612 | + * overflow to infinity, in which case the rational number is converted |
| 3613 | + * to null.)</li> <li>Simple values other than true and false will be |
3612 | 3614 | * converted to null. (This doesn't include floating-point |
3613 | 3615 | * numbers.)</li> <li>Infinity and not-a-number will be converted to |
3614 | 3616 | * null.</li></ul> |
|
0 commit comments