Skip to content

Commit

Permalink
Reuse newer APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Apr 20, 2022
1 parent a30a7ee commit a1aa1de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ private static GzipFileSystem cast(final CompressedFileFileSystem fs) {

@Override
protected InputStream doGetInputStream(final int bufferSize) throws Exception {
return new GZIPInputStream(getContainer().getContent().getInputStream(), bufferSize);
return new GZIPInputStream(getInputStream(), bufferSize);
}

@Override
protected OutputStream doGetOutputStream(final boolean bAppend) throws Exception {
return new GZIPOutputStream(getContainer().getContent().getOutputStream(false));
return new GZIPOutputStream(getOutputStream(false));
}
}

0 comments on commit a1aa1de

Please sign in to comment.