Class Zip64ExtensibleDataSector


  • public class Zip64ExtensibleDataSector
    extends java.lang.Object
    Contains the special purpose data for the Zip64 EOCD record.

    According to the zip specification, the Zip64 EOCD is composed of a sequence of zero or more Special Purpose Data fields. This class provides a way to access, parse, and modify that information.

    Each Special Purpose Data is represented by an instance of Zip64ExtensibleDataSector.Z64SpecialPurposeData and contains a header ID and data.

    • Constructor Detail

      • Zip64ExtensibleDataSector

        public Zip64ExtensibleDataSector​(byte[] rawData)
        Creates a Zip64 Extensible Data Sector based on existing raw data.
        Parameters:
        rawData - the raw data; will only be parsed if needed.
      • Zip64ExtensibleDataSector

        public Zip64ExtensibleDataSector()
        Creates an Extensible Data Sector with no special purpose data.
      • Zip64ExtensibleDataSector

        public Zip64ExtensibleDataSector​(com.google.common.collect.ImmutableList<Zip64ExtensibleDataSector.Z64SpecialPurposeData> fields)
        Creates a Zip64 Extensible Data with the given Special purpose data.
        Parameters:
        fields - all special purpose data.