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;