Take a deeper look at the difference between a Zip and a Gzip stream with José Paumard.
Java
Открыть в X576 тыс. подписчиков
13 864 просмотра
Take a deeper look at the difference between a Zip and a Gzip stream with José Paumard.
2 комментария
Комментарии из оригинального поста в X (Twitter)

@bortommolnet
@JosePaumard Unfortunately there is no point in learning the difference anymore
1 отметка «Нравится»

@kreout
@JosePaumard With ZipInputStream, read() returning -1 ends the current entry, not the archive. You still need getNextEntry() to move on. A two-entry fixture is a useful test: code written like a GZIP reader can otherwise silently stop after the first file.
