MCPcopy Index your code
hub / github.com/c-rack/cbor-java / encode

Method encode

src/main/java/co/nstant/in/cbor/CborEncoder.java:65–69  ·  view source on GitHub ↗

Encode a list of DataItems, also known as a stream. @param dataItems a list of DataItems @throws CborException if the DataItems could not be encoded or there was an problem with the OutputStream.

(List<DataItem> dataItems)

Source from the content-addressed store, hash-verified

63 * problem with the {@link OutputStream}.
64 */
65 public void encode(List<DataItem> dataItems) throws CborException {
66 for (DataItem dataItem : dataItems) {
67 encode(dataItem);
68 }
69 }
70
71 /**
72 * Encode a single {@link DataItem}.

Callers 15

testMethod · 0.95
testTaggingMethod · 0.95
shouldEncodeAndDecodeMethod · 0.95
shouldEncodeMethod · 0.95
shouldEncodeMethod · 0.95
shouldEncodeMethod · 0.95
shouldEncodeMethod · 0.95
shouldEncodeMethod · 0.95
shouldEncodeMethod · 0.95
shouldThrowExceptionMethod · 0.95

Calls 3

hasTagMethod · 0.80
getTagMethod · 0.80
getMajorTypeMethod · 0.80

Tested by 15

testMethod · 0.76
testTaggingMethod · 0.76
shouldEncodeAndDecodeMethod · 0.76
shouldEncodeMethod · 0.76
shouldEncodeMethod · 0.76
shouldEncodeMethod · 0.76
shouldEncodeMethod · 0.76
shouldEncodeMethod · 0.76
shouldEncodeMethod · 0.76
shouldThrowExceptionMethod · 0.76