code: public void encode(List<DataItem> dataItems) throws CborException {
          for (DataItem dataItem : dataItems) {
              encode(dataItem);
          }
      }
docs: Encode a list of {@link DataItem}s, also known as a stream.
  
  @param dataItems
  a list of {@link DataItem}s
  @throws CborException
  if the {@link DataItem}s could not be encoded or there was an
  problem with the {@link OutputStream}.