From 29427d0f6c2446be6efec538e58cce7a1c2a117f Mon Sep 17 00:00:00 2001 From: Michael Clausohm Date: Wed, 19 Apr 2023 18:35:11 +0200 Subject: [PATCH] Extend constructor for streaming /library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java --- .../org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java index eea28b1b..c0c4b51c 100644 --- a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java +++ b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java @@ -1,6 +1,7 @@ package org.mustangproject.ZUGFeRD; import java.io.IOException; +import java.io.InputStream; import java.math.BigDecimal; import java.math.RoundingMode; import java.nio.charset.StandardCharsets; @@ -43,6 +44,10 @@ public class ZUGFeRDInvoiceImporter extends ZUGFeRDImporter { super(filename); } + public ZUGFeRDInvoiceImporter(InputStream stream) { + super(stream); + } + public void fromXML(String XML) { try { containsMeta = true;