}
}
private UnicodeString decodeInfinitiveLength() throws CborException {
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
DataItem dataItem;
for (;;) {
dataItem = decoder.decodeNext();
MajorType majorType = dataItem.getMajorType();
if (Special.BREAK.equals(dataItem)) {
break;
} else if (majorType == MajorType.UNICODE_STRING) {
UnicodeString unicodeString = (UnicodeString) dataItem;
try {