RFR: 8066583: DeflaterInput/OutputStream and InflaterInput/OutputStream should explain responsibility for freeing resources [v6]
Chen Liang
liach at openjdk.org
Tue Apr 1 13:26:22 UTC 2025
On Tue, 1 Apr 2025 07:22:57 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> Does the original specification imply a default decompressor is created, or is such a default decompressor simply used?
>
> Hello Chen, if you mean whether multiple instances of these streams can share the same default decompressor, then no, they can't (and they don't). Each creates its own instance of default decompressor/compressor.
Is it impossible for another compliant implementation of Java SE to do so?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23655#discussion_r2022851311
More information about the core-libs-dev
mailing list