import java.util.List;
import java.util.function.BiConsumer;
+import javax.xml.namespace.QName;
+
public class ContentUtils {
public static void traverse(Content content, BiConsumer<Content, Integer> doIt) {
traverse(content, doIt, 0);
}
String prefix = sb.toString();
out.println(prefix + content.getName());
- for (String key : content.keySet()) {
+ for (QName key : content.keySet()) {
out.println(prefix + " " + key + "=" + content.get(key));
}
if (printText) {
if (!info.contains("base64"))
throw new IllegalArgumentException("URI must specify base64");
- String base64Str = uri.toString().substring(commaIndex);
+ String base64Str = schemeSpecificPart.substring(commaIndex + 1);
return Base64.getDecoder().decode(base64Str);
}