Gets the uncompressed size of this GZIPInputStream?

后端 未结 8 772
余生分开走
余生分开走 2021-01-04 13:51

I have a GZIPInputStream that I constructed from another ByteArrayInputStream. I want to know the original (uncompressed) length for the gzip data.

8条回答
  •  南笙
    南笙 (楼主)
    2021-01-04 14:51

    There is no reliable way to get the length other than decompressing the whole thing. See Uncompressed file size using zlib's gzip file access function .

提交回复
热议问题