Class ZipArchiveInputStream.CurrentEntry

java.lang.Object
org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.CurrentEntry
Enclosing class:
ZipArchiveInputStream

private static final class ZipArchiveInputStream.CurrentEntry extends Object
Structure collecting information for the entry that is currently being read.
  • Field Details

    • entry

      private final ZipArchiveEntry entry
      Current ZIP entry.
    • hasDataDescriptor

      private boolean hasDataDescriptor
      Does the entry use a data descriptor?
    • usesZip64

      private boolean usesZip64
      Does the entry have a ZIP64 extended information extra field.
    • bytesRead

      private long bytesRead
      Number of bytes of entry content read by the client if the entry is STORED.
    • bytesReadFromStream

      private long bytesReadFromStream
      Number of bytes of entry content read from the stream.

      This may be more than the actual entry's length as some stuff gets buffered up and needs to be pushed back when the end of the entry has been reached.

    • crc

      private final CRC32 crc
      The checksum calculated as the current entry is read.
    • in

      private InputStream in
      The input stream decompressing the data for shrunk and imploded entries.
  • Constructor Details

    • CurrentEntry

      private CurrentEntry()