Skip to content

Commit

Permalink
update Java version
Browse files Browse the repository at this point in the history
  • Loading branch information
peteroupc committed Dec 23, 2024
1 parent 350107a commit f9d6c3a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
16 changes: 8 additions & 8 deletions api/com.upokecenter.cbor.CBORObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ Converts this object to a byte array in JavaScript object Notation (JSON)
method (such as <code>int</code> or <code>string</code>) or a plain-old-data type
(POCO or POJO type) within the control of the application. If the
plain-old-data type references other data types, those types should likewise
meet either criterion above.</p>
meet either criterion given earlier.</p>

**Returns:**

Expand Down Expand Up @@ -1670,7 +1670,7 @@ Converts this CBOR object to an object of an arbitrary type. See the
method (such as <code>int</code> or <code>string</code>) or a plain-old-data type
(POCO or POJO type) within the control of the application. If the
plain-old-data type references other data types, those types should likewise
meet either criterion above.</p>
meet either criterion given earlier.</p>

* <code>mapper</code> - This parameter controls which data types are eligible for
Plain-Old-Data deserialization and includes custom converters from CBOR
Expand Down Expand Up @@ -1706,7 +1706,7 @@ Converts this CBOR object to an object of an arbitrary type. See the
method (such as <code>int</code> or <code>string</code>) or a plain-old-data type
(POCO or POJO type) within the control of the application. If the
plain-old-data type references other data types, those types should likewise
meet either criterion above.</p>
meet either criterion given earlier.</p>

* <code>options</code> - Specifies options for controlling deserialization of CBOR
objects.
Expand Down Expand Up @@ -1909,7 +1909,7 @@ Converts this CBOR object to an object of an arbitrary type. See the
method, such as <code>int</code> or <code>string</code> , or a plain-old-data type
(POCO or POJO type) within the control of the application. If the
plain-old-data type references other data types, those types should likewise
meet either criterion above.</p>
meet either criterion given earlier.</p>

* <code>mapper</code> - This parameter controls which data types are eligible for
Plain-Old-Data deserialization and includes custom converters from CBOR
Expand Down Expand Up @@ -1953,7 +1953,7 @@ Generates an object of an arbitrary type from an array of CBOR-encoded
method, such as <code>int</code> or <code>string</code>, or a plain-old-data type
(POCO or POJO type) within the control of the application. If the
plain-old-data type references other data types, those types should likewise
meet either criterion above.</p>
meet either criterion given earlier.</p>

* <code>mapper</code> - This parameter controls which data types are eligible for
Plain-Old-Data deserialization and includes custom converters from CBOR
Expand Down Expand Up @@ -2004,7 +2004,7 @@ Generates an object of an arbitrary type from an array of CBOR-encoded
method, such as <code>int</code> or <code>string</code>, or a plain-old-data type
(POCO or POJO type) within the control of the application. If the
plain-old-data type references other data types, those types should likewise
meet either criterion above.</p>
meet either criterion given earlier.</p>

**Returns:**

Expand Down Expand Up @@ -2043,7 +2043,7 @@ Generates an object of an arbitrary type from an array of CBOR-encoded
method, such as <code>int</code> or <code>string</code>, or a plain-old-data type
(POCO or POJO type) within the control of the application. If the
plain-old-data type references other data types, those types should likewise
meet either criterion above.</p>
meet either criterion given earlier.</p>

* <code>mapper</code> - This parameter controls which data types are eligible for
Plain-Old-Data deserialization and includes custom converters from CBOR
Expand Down Expand Up @@ -2089,7 +2089,7 @@ Generates an object of an arbitrary type from an array of CBOR-encoded
method, such as <code>int</code> or <code>string</code>, or a plain-old-data type
(POCO or POJO type) within the control of the application. If the
plain-old-data type references other data types, those types should likewise
meet either criterion above.</p>
meet either criterion given earlier.</p>

**Returns:**

Expand Down
22 changes: 11 additions & 11 deletions src/main/java/com/upokecenter/cbor/CBORObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ public static CBORObject FromJSONString(
* method (such as {@code int} or {@code string}) or a plain-old-data type
* (POCO or POJO type) within the control of the application. If the
* plain-old-data type references other data types, those types should likewise
* meet either criterion above.</p>
* meet either criterion given earlier.</p>
* @return The converted object.
* @throws com.upokecenter.cbor.CBORException The given type {@code t} , or
* this object's CBOR type, is not supported, or the given object's nesting is
Expand All @@ -1178,7 +1178,7 @@ public <T> T ToObject(java.lang.reflect.Type t) {
* method (such as {@code int} or {@code string}) or a plain-old-data type
* (POCO or POJO type) within the control of the application. If the
* plain-old-data type references other data types, those types should likewise
* meet either criterion above.</p>
* meet either criterion given earlier.</p>
* @param mapper This parameter controls which data types are eligible for
* Plain-Old-Data deserialization and includes custom converters from CBOR
* objects to certain data types.
Expand Down Expand Up @@ -1211,7 +1211,7 @@ public <T> T ToObject(java.lang.reflect.Type t, CBORTypeMapper mapper) {
* method (such as {@code int} or {@code string}) or a plain-old-data type
* (POCO or POJO type) within the control of the application. If the
* plain-old-data type references other data types, those types should likewise
* meet either criterion above.</p>
* meet either criterion given earlier.</p>
* @param options Specifies options for controlling deserialization of CBOR
* objects.
* @return The converted object.
Expand Down Expand Up @@ -1412,7 +1412,7 @@ public <T> T ToObject(java.lang.reflect.Type t, PODOptions options) {
* method, such as {@code int} or {@code string} , or a plain-old-data type
* (POCO or POJO type) within the control of the application. If the
* plain-old-data type references other data types, those types should likewise
* meet either criterion above.</p>
* meet either criterion given earlier.</p>
* @param mapper This parameter controls which data types are eligible for
* Plain-Old-Data deserialization and includes custom converters from CBOR
* objects to certain data types. Can be null.
Expand Down Expand Up @@ -1451,7 +1451,7 @@ public <T> T ToObject(java.lang.reflect.Type t, CBORTypeMapper mapper, PODOption
* method, such as {@code int} or {@code string}, or a plain-old-data type
* (POCO or POJO type) within the control of the application. If the
* plain-old-data type references other data types, those types should likewise
* meet either criterion above.</p>
* meet either criterion given earlier.</p>
* @param mapper This parameter controls which data types are eligible for
* Plain-Old-Data deserialization and includes custom converters from CBOR
* objects to certain data types. Can be null.
Expand Down Expand Up @@ -1504,7 +1504,7 @@ public static <T> T DecodeObjectFromBytes(
* method, such as {@code int} or {@code string}, or a plain-old-data type
* (POCO or POJO type) within the control of the application. If the
* plain-old-data type references other data types, those types should likewise
* meet either criterion above.</p>
* meet either criterion given earlier.</p>
* @return An object of the given type decoded from the given byte array.
* Returns null (as opposed to CBORObject.Null) if {@code data} is empty and
* the AllowEmpty property is set on the given CBOREncodeOptions object.
Expand Down Expand Up @@ -1540,7 +1540,7 @@ public static <T> T DecodeObjectFromBytes(
* method, such as {@code int} or {@code string}, or a plain-old-data type
* (POCO or POJO type) within the control of the application. If the
* plain-old-data type references other data types, those types should likewise
* meet either criterion above.</p>
* meet either criterion given earlier.</p>
* @param mapper This parameter controls which data types are eligible for
* Plain-Old-Data deserialization and includes custom converters from CBOR
* objects to certain data types. Can be null.
Expand Down Expand Up @@ -1582,7 +1582,7 @@ public static <T> T DecodeObjectFromBytes(
* method, such as {@code int} or {@code string}, or a plain-old-data type
* (POCO or POJO type) within the control of the application. If the
* plain-old-data type references other data types, those types should likewise
* meet either criterion above.</p>
* meet either criterion given earlier.</p>
* @return An object of the given type decoded from the given byte array.
* Returns null (as opposed to CBORObject.Null) if {@code data} is empty and
* the AllowEmpty property is set on the given CBOREncodeOptions object.
Expand Down Expand Up @@ -7108,7 +7108,7 @@ private static void WriteStreamedString(String str, OutputStream stream) throws
} else if (c <= 0x7ff) {
if (byteIndex + 2 > StreamedStringBufferLength) {
// Write bytes retrieved so far - the next two bytes
// would exceed the length, and the CBOR spec forbids
// would exceed the length, and the CBOR specification forbids
// splitting characters when generating text strings
if (!streaming) {
stream.write(0x7f);
Expand All @@ -7133,7 +7133,7 @@ private static void WriteStreamedString(String str, OutputStream stream) throws
if (c <= 0xffff) {
if (byteIndex + 3 > StreamedStringBufferLength) {
// Write bytes retrieved so far - the next three bytes
// would exceed the length, and the CBOR spec forbids
// would exceed the length, and the CBOR specification forbids
// splitting characters when generating text strings
if (!streaming) {
stream.write(0x7f);
Expand All @@ -7149,7 +7149,7 @@ private static void WriteStreamedString(String str, OutputStream stream) throws
} else {
if (byteIndex + 4 > StreamedStringBufferLength) {
// Write bytes retrieved so far - the next four bytes
// would exceed the length, and the CBOR spec forbids
// would exceed the length, and the CBOR specification forbids
// splitting characters when generating text strings
if (!streaming) {
stream.write(0x7f);
Expand Down

0 comments on commit f9d6c3a

Please sign in to comment.