Class Zip64Eocd


  • public class Zip64Eocd
    extends java.lang.Object
    Zip64 End of Central Directory record in a zip file.
    • Field Detail

      • SIZE_OFFSET

        public static final int SIZE_OFFSET
        The location of the Zip64 size field relative to the start of the Zip64 EOCD.
      • TRUE_SIZE_DIFFERENCE

        public static final int TRUE_SIZE_DIFFERENCE
        The difference between the size in the size field and the true size of the Zip64 EOCD. The size field in the EOCD does not consider the size field and the identifier field when calculating the size of the Zip64 EOCD record.
    • Method Detail

      • size

        public int size()
        Gets the size (in bytes) of the Zip64 EOCD record.
        Returns:
        the size of the record.
      • getTotalRecords

        public long getTotalRecords()
      • getDirectorySize

        public long getDirectorySize()
      • getDirectoryOffset

        public long getDirectoryOffset()
      • getVersionToExtract

        public long getVersionToExtract()
      • toBytes

        public byte[] toBytes()
        Gets the byte representation of The Zip64 EOCD record.
        Returns:
        the bytes of the EOCD.