Skip to content

Commit

Permalink
upgrade ocfl-java to fix buffering bug (#43)
Browse files Browse the repository at this point in the history
* upgrade ocfl-java to fix buffering bug

* buffer files read from staging
  • Loading branch information
pwinckles authored Sep 8, 2021
1 parent cb784ce commit 766f618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<checkstyle.plugin.version>3.1.1</checkstyle.plugin.version>
<source.plugin.version>3.0.1</source.plugin.version>
<javadoc.plugin.version>3.2.0</javadoc.plugin.version>
<ocfl-java.version>1.1.0</ocfl-java.version>
<ocfl-java.version>1.2.3</ocfl-java.version>
</properties>

<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
Expand Down Expand Up @@ -574,7 +575,7 @@ private Optional<InputStream> readFromStaging(final PathPair path) {

if (Files.exists(stagingPath)) {
try {
return Optional.of(Files.newInputStream(stagingPath));
return Optional.of(new BufferedInputStream(Files.newInputStream(stagingPath)));
} catch (final IOException e) {
throw new UncheckedIOException(e);
}
Expand Down

0 comments on commit 766f618

Please sign in to comment.