I have a url of a gzipped file. I would like to obtain an InputStream of the actual file in Java. What is the best way to achieve this?

有帮助吗?

解决方案

Do you mean, something like GZIPInputStream?

InputStream is = ....
InputStream gis = new GZIPInputStream(is);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top