This means the ZIP format cannot really be parsed correctly while reading a non-seekable stream, which is what ZipArchiveInputStream is forced to do.
[...]
If possible, you should always prefer ZipFile over ZipArchiveInputStream. 1
this is necessary for #14 to retrieve file attributes properly
From the commons-compress documentation for zip:
this is necessary for #14 to retrieve file attributes properly