Skip to content

Commit

Permalink
Merge pull request #315 from MCl57/master
Browse files Browse the repository at this point in the history
Extend constructor for streaming /library/src/main/java/org/mustangpr…
  • Loading branch information
jstaerk authored Apr 20, 2023
2 parents fb9483f + 64db0d8 commit d996110
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
25 changes: 19 additions & 6 deletions library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,28 @@
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<excludes>
<exclude>**/logback.xml</exclude>
</excludes>
</configuration>
</plugin>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -43,6 +44,10 @@ public ZUGFeRDInvoiceImporter(String filename) {
super(filename);
}

public ZUGFeRDInvoiceImporter(InputStream stream) {
super(stream);
}

public void fromXML(String XML) {
try {
containsMeta = true;
Expand Down

0 comments on commit d996110

Please sign in to comment.