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)
| 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}. |