Skip to content

Commit 612de35

Browse files
committed
chore: avoid deprecated GzipCompressorInputStream constructor
* use builder
1 parent 4766de2 commit 612de35

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/org/janelia/saalfeldlab/n5/GzipCompression.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ private InputStream decode(final InputStream in) throws IOException {
9292
if (useZlib) {
9393
return new InflaterInputStream(in);
9494
} else {
95-
return new GzipCompressorInputStream(in, true);
95+
return GzipCompressorInputStream.builder()
96+
.setInputStream(in)
97+
.setDecompressConcatenated(true)
98+
.getInputStream();
9699
}
97100
}
98101

0 commit comments

Comments
 (0)