The other ArchiveInputStream s either throw an exception or return -1 when you try to read from the stream without ever calling getNextEntry.
The other ArchiveInputStream s either throw an exception or return -1 when you try to read from the stream without ever calling getNextEntry.