Class EocdGroup


  • public class EocdGroup
    extends java.lang.Object
    The collection of all data stored in all End of Central Directory records in the zip file. The EOCDGroup is meant to collect and manage all the information about the Eocd, Zip64EocdLocator, and the Zip64Eocd in one place.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Zip64ExtensibleDataSector getExtensibleData()
      Returns the Zip64 Extensible Data Sector, or null if the EOCD record is not in the Zip64 format.
      long getRecordSize()
      Returns the total size of the EOCD record.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getRecordSize

        public long getRecordSize()
        Returns the total size of the EOCD record. This will be the same as the standard EOCD size for a Zip32 file or in a Zip64 file will be the start of the Zip64 record to the end of the standard EOCD. the EOCD must be in memory for this method to be invoked.
        Returns:
        The total size of the EOCD record.
      • getExtensibleData

        @Nullable
        public Zip64ExtensibleDataSector getExtensibleData()
        Returns the Zip64 Extensible Data Sector, or null if the EOCD record is not in the Zip64 format. The EOCD must be in memory for this method to be invoked.
        Returns:
        The Extensible data sector, or null if none exists.